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
1
vote
2 answers

Unable to see the decompiled code of System.Management.ManagementDateTimeConverter.ToDateTime(string) using ILSpy/Reflector?

I am trying to see the actual implementation detail of System.Management.ManagementDateTimeConverter.ToDateTime(string) using ILspy? It didn't show anything. Then I thought it's probably a bug in ILSpy and tried to see the decompiled code using…
Dreamer
  • 3,371
  • 2
  • 34
  • 50
1
vote
1 answer

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

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…
TecMan
  • 2,743
  • 2
  • 30
  • 64
1
vote
1 answer

Need option to select declaration style

Can anyone please help in this problem? ============ When we decompile code from assembly (example): AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(fileName); AstBuilder decompiler = new AstBuilder(new…
Nayan
  • 3,092
  • 25
  • 34
1
vote
1 answer

why is windows file version different from actual assembly version for a C++/CLR assembly

I have a 3rd party C++/CLR assembly. When I right click the dll, the version tab shows 5.32.1 but when the meta information in ILSpy shows 5.0.0. Why is this difference? Which one is the one that is correct?
user236215
  • 7,278
  • 23
  • 59
  • 87
1
vote
1 answer

Using ILSpy, how do I navigate to the Resource string?

I'm browsing through the System.Web.Mvc library and I don't know how to navigate to the resource files. I see a line of code like this... throw new ArgumentException(MvcResources.Common_NullOrEmpty, "contentPath"); So I click through on…
joelnet
  • 13,621
  • 5
  • 35
  • 49
0
votes
0 answers

Lots of unused __methodrefs in decompiled C# code

I am using dotPeek and ILSpy to explore some compiled release C# code. Quite a lot of the methods are full of structures like this: // Within method Class.foo()... if (condition) { label_2: switch (7) { case 0: …
Joel Croteau
  • 1,682
  • 12
  • 17
0
votes
1 answer

Why IlSpy doesn't show me AsyncStateMachine attribute

If I'am selecting C# 4.0 it shows me the following code structure: But when I'am selecting the C# 5.0 I see the following result: All checkboxes in Option -> Decompiler is checked: I'am expecting that it should be the same
limeniye
  • 31
  • 1
  • 6
0
votes
1 answer

How to obfuscate const variable values using dotfuscator

This is my code: namespace Password.Lib { public class PassRepo: IPassRepo { const string mEntropy= "djbiudv-dsvjkbdjs-svdjkbv"; const string logLevel = "logLevelKey"; private string currentLevel; public…
Tina
  • 15
  • 3
0
votes
1 answer

why am I not able to see any namespace why trying to decompile System.IO.Filesystem assembly using ILSPY

I am trying to check the namespace and the types in System.IO.Filesystem assembly by usinig ILSPY but I am not able to see any namespace at all as shown in the below img link, why am I not able to see it? ILSPY scrshot
Kailashh
  • 1
  • 1
0
votes
0 answers

Reverse engineering Android app to work out BLE handshake encryption

I have a BLE device (pool chlorinator) that I would like to control with a custom client, so I can integrate into Home Assistant. I have sniffed the the BLE packets but the GATT payloads appear to be encrypted. I have decompiled the Android client…
0
votes
1 answer

I decompiled a dotnet .dll with ILSpy but the xaml files have some issues

I decompiled a .dll with ILSpy and the code looks fine but I have a xaml file which is:
Axeltherabbit
  • 680
  • 3
  • 20
0
votes
1 answer

Full of hex codes in ILSpy, dNSpy, dotPeek

I'm trying to explore things with decompiling and I think I hit a wall because I think this is too much for a simple guy like me to comprehend. Is this normal? Or like the developer of the software (exe file) protected/secured it? Is there any…
jebb
  • 11
  • 1
0
votes
1 answer

ILSpy decompile a delegate

ILSpy can decompile assemblies. Can it decompile a delegate? I would imagine a CSharpDecompiler constructor overload accepting a Func or an Action as an argument instead of a "string fileName". Is it technically feasible, are there any future plans…
chr1st0scli
  • 101
  • 6
0
votes
2 answers

ILSpy,How to make IL Code looks more like native C# instead of machine code

this is my result this is what i want to see I've only just started using ILSpy,the dll is compined with Unity Self,and i just drag the Assembly-CSharp.dll into ILSpy,I have searched for a long time but nothing leaned.Is there some setting i need?
Logarius
  • 1
  • 1
0
votes
1 answer

ILSpy assembly reference missing

I have a project "A", which references 2 other projects "B" and "C". For both references actual functions from these project are used in "A". But when I open the assembly A.dll with ILSpy, it only shows "B" and not "C" under references. If I…
LordHades
  • 11
  • 1