ilspy

Does Mono Implement CLR? Or At Least Some Unmanaged InternalCall? Or Nothing?

一个人想着一个人 提交于 2019-12-11 01:55:27
问题 We know that C# uses unmanaged code like P/Invoke or CLR implemented code like InternalCall. What I want to know is does mono it self implements a complete CLR or just some unmanaged code or nothing? I can use .Net Reflactor or ILSpy to view managed assembly, but some times due to performance issues I need to know how does CLR implement some unmanaged code. Like: How does System.String.get_lenght() do? Any one can answer questions above or some infomation about this is welcomed. Thanks. 回答1:

Cannot decompile System.Windows.dll for Windows Phone 8 with ILSpy

断了今生、忘了曾经 提交于 2019-12-09 08:33:30
I am using ILSpy , a free .NET assembly decompiler, to analyze the standard and 3rd party .NET assemblies. It works enough well for the standard .NET WinForms and WPF libraries, but I could not decompile System.Windows.dll for Windows Phone 8 located in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0\ . It displays the members, but their internals (source code) are empty. Is it a problem of ILSpy, or we cannot decompile Windows Phone .NET libraries using any other tools like Red Gate's .NET Reflector? Is there any other way to get/view the source code of these

how to use ILspy debug a dll?

ぃ、小莉子 提交于 2019-12-09 07:06:53
问题 i want to use ILspy debug a dll,as pic: but it only can show two process: but in vs2010,i can attach more process: how to show w3wp.exe in ILspy? who can help me? 回答1: From the ILSpy source code (ICSharpCode.ILSpy.Debugger.UI.AttachToProcessWindow): Process currentProcess = Process.GetCurrentProcess(); foreach (Process process in Process.GetProcesses()) { try { if (process.HasExited) continue; // Prevent attaching to our own process. if (currentProcess.Id != process.Id) { bool managed = false

How is Task.Delay awaitable if it's not marked async?

只谈情不闲聊 提交于 2019-12-08 17:34:14
问题 I'm looking at Task.Delay(int) decompiled in ILSpy: // System.Threading.Tasks.Task [__DynamicallyInvokable] public static Task Delay(int millisecondsDelay) { return Task.Delay(millisecondsDelay, default(CancellationToken)); } This method is used like await Task.Delay(5000); , and the intellisense even says "(awaitable)": So how is it that Task.Delay(int) isn't marked async ( public static async Task Delay(int millisecondsDelay) )? 回答1: What's awaitable is the Task Task.Delay returns. Each

Cannot decompile System.Windows.dll for Windows Phone 8 with ILSpy

纵饮孤独 提交于 2019-12-08 05:13:04
问题 I am using ILSpy, a free .NET assembly decompiler, to analyze the standard and 3rd party .NET assemblies. It works enough well for the standard .NET WinForms and WPF libraries, but I could not decompile System.Windows.dll for Windows Phone 8 located in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0\ . It displays the members, but their internals (source code) are empty. Is it a problem of ILSpy, or we cannot decompile Windows Phone .NET libraries using any

exception has been thrown by a target of invocation in Visual Studio 2013

蹲街弑〆低调 提交于 2019-12-06 18:36:40
问题 Today when I opened Visual Studio 2013 Professional Edition , I got the error exception has been thrown by a target of invocation. Also I tried to open ILSpy to debug a dll, but it crashed. I think that it might be from the same killer. For the system I did was I installed SQL Server 2012 Professional Edition yesterday. I checked the environment path. It is: C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program

ILSpy, how to resolve dependencies?

拈花ヽ惹草 提交于 2019-12-06 01:59:23
问题 I want to disassemble an entire .NET assembly with ILSpy. I used this code as base: http://skysigal.xact-solutions.com/Blog/tabid/427/entryid/2488/Default.aspx And it works fine, just when I have an assembly that references Npgsql.dll (or any other non-gac assembly), then I get an AssemblyResolutionException. Failed to resolve assembly: 'Npgsql, Version=2.0.11.92, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' I know how I can get the referenced assemblies, but how can I add them to ast ?

exception has been thrown by a target of invocation in Visual Studio 2013

不想你离开。 提交于 2019-12-05 01:20:16
Today when I opened Visual Studio 2013 Professional Edition , I got the error exception has been thrown by a target of invocation. Also I tried to open ILSpy to debug a dll, but it crashed. I think that it might be from the same killer. For the system I did was I installed SQL Server 2012 Professional Edition yesterday. I checked the environment path. It is: C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;c:\Program Files (x86)\AMD APP\bin

ILSpy, how to resolve dependencies?

。_饼干妹妹 提交于 2019-12-04 06:25:46
I want to disassemble an entire .NET assembly with ILSpy. I used this code as base: http://skysigal.xact-solutions.com/Blog/tabid/427/entryid/2488/Default.aspx And it works fine, just when I have an assembly that references Npgsql.dll (or any other non-gac assembly), then I get an AssemblyResolutionException. Failed to resolve assembly: 'Npgsql, Version=2.0.11.92, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' I know how I can get the referenced assemblies, but how can I add them to ast ? // SqlWebAdmin.Models.Decompiler.DecompileAssembly("xy.dll"); public static string DecompileAssembly

how to use ILspy debug a dll?

房东的猫 提交于 2019-12-03 08:07:21
i want to use ILspy debug a dll,as pic: but it only can show two process: but in vs2010,i can attach more process: how to show w3wp.exe in ILspy? who can help me? From the ILSpy source code (ICSharpCode.ILSpy.Debugger.UI.AttachToProcessWindow): Process currentProcess = Process.GetCurrentProcess(); foreach (Process process in Process.GetProcesses()) { try { if (process.HasExited) continue; // Prevent attaching to our own process. if (currentProcess.Id != process.Id) { bool managed = false; try { var modules = process.Modules.Cast<ProcessModule>().Where( m => m.ModuleName.StartsWith("mscor",