Questions tagged [ilspy]

ILSpy is the open-source .NET assembly browser and decompiler.

ILSpy is the open-source .NET assembly browser and decompiler. ILSpy.net

79 questions
0
votes
1 answer

How can decompile and see Nuget package dll source code using ILSpy

I have install some asp.net core mvc dlls (Microsoft.AspNetCore.Mvc.Abstraction.dll). I want to decompile it and see the source code. The dll is added to my project>Dependencies>Nuget. However, I am not sure where exactly the dll in in my…
Suraj Rai
  • 49
  • 1
  • 3
0
votes
1 answer

How to decompile assembly without have the dependencies

This question is based in (ILSpy, how to resolve dependencies?) Well, the ILSpy library changed and now we don't have Ast Builder, like the most answers about this. The instance new ICSharpDecompiler have a overload that can take a ModuleDefinition…
Forsaiken
  • 324
  • 3
  • 12
0
votes
1 answer

Coalesce expression causing an issue in return statements in Fody

Consider the following snippet of code: private string GetFieldValueAsString(string nonAliasedEntityName = null, string nonAliasedName = null) { return nonAliasedEntityName ?? nonAliasedName; // simplified code of course! } It is compiled to…
Ahmed Elsawalhy
  • 148
  • 1
  • 6
  • 10
0
votes
1 answer

C# pass action with parameters

today i was looking for some projects with ilspy i did not understand how Actions can be used like this, in one class this method is called public void Login(Action success, Action failure) { if (!FB.IsInitialized) { …
user7593409
0
votes
1 answer

Getting properties from forms in IlSpy

Is it possible to get the properties (width, height, location, ...) of e.g. labels, buttons, textboxes, ... in IlSpy for .Net? My problem is, I have done a project but lost the project file, so there is only the .exe-file available. And I really…
FranzHuber23
  • 3,311
  • 5
  • 24
  • 63
0
votes
1 answer

ILSpy on .net Compact Framework

In ILSpy version 2.3.1.1855, I'm trying to decompile System.dll (to troubleshoot a problem with HttpWebRequest). This dll is in C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE. I get a list of types and members, but no code.…
Robert Cutajar
  • 3,181
  • 1
  • 30
  • 42
0
votes
1 answer

Error after using .NET decompiler: (...explicit method implementation cannot implement...because it is an accessor)

I decompile a code library with ILSpy, the code is written is C#. When I build solution, this error message comes up and says: '.....IEditorVirtualButtonBehaviour.get_gameObject()' explicit method implementation cannot implement…
BongBong
  • 71
  • 1
  • 7
0
votes
1 answer

Lambda expression's nested classes missing from syntax tree with ICSharpCode Decompiler

Apparently ICSharpCode Decompiler somehow doesn't decompile inner classes that were created by the C# compiler for a lambda expression. Consider the following example: In certain cases a lambda expression in C# will be compiled into an inner class…
Piedone
  • 2,693
  • 2
  • 24
  • 43
0
votes
1 answer

'using' block compiler generated code not visible in dotPeek or ILSpy

I am interested to look at the compiler generated code for the using code block which generates try-finally, but I do not see both dotPeek and ILSpy showing this detail. I used ildasm.exe to look at this code block and I see that it has the…
Kiran
  • 56,921
  • 15
  • 176
  • 161
0
votes
1 answer

reconstructing IL instructions to a higher level .net code

ILSpy is using cecil along with it's own libraries to accomplish this, i have heard that .NETReflector is using his own private algorithm to generate the higher level c#,f#,vb code from MSIL, any methods/references on how to do this without…
0x3h
  • 452
  • 9
  • 22
0
votes
1 answer

How to Extract the Resouce Content From MSIL OR .NET PE Files

Please check the Image link, i need to extract the resource content from the MSIL file. I have debugged the file using ILSpy but i need to do it in any other way. with out using any manual intereption. https://i.stack.imgur.com/ZQdRc.png
Peter John
  • 47
  • 6
0
votes
0 answers

How to get the image from the resource using ILSpy

I don't know it is a valid question or not. But, I am bit curious about How do I get the Image or icon in the resource of anydll. Can any one tell me how do I do that? I am using a dll where there are many icons in the resource.
A B
  • 1,461
  • 2
  • 19
  • 54
0
votes
1 answer

Does the .NET Runtime version used by a Windows CE assembly necessarily match the CF version?

Wondering if there was a tool that would tell me which version of the compact framework was used to build the exe relic left by our departed/absquatulated former coworker, I found this I downloaded ILSpy as recommended by tsandhol, but see no…
0
votes
1 answer

Remove goto/switch stataments after using ILSpy

I'm have some problems with using ILSpy. I'm using this tool to decomplie an DLL but it's exist to much garbages. How can i remove "goto" after using ILSpy? :'( Any suggestions? Thanks in advance.
ngvntoan
  • 82
  • 1
  • 5
0
votes
1 answer

Decompiled HtmlDocument's InvokeScript not working

Here is the code I got using ILSpy: public static object InvokeScript(this IHTMLDocument2 document, string scriptName, object[] args = null) { object result = null; UnsafeNativeMethods.tagDISPPARAMS tagDISPPARAMS = new…
Juan
  • 15,274
  • 23
  • 105
  • 187