CreateAndInject
CreateAndInject
**Visual Studio Version**:16.9.4 **Steps to Reproduce**: 1. Create a console application and add it to git. 2. Open Program.cs, make any change and save it, compare it in git, vs...
Source: private static void Main(string[] args) { Console.WriteLine(0xffffeeeeL); Console.ReadKey(); } Output is 4294962926 Decompile: private static void Main(string[] args) { Console.WriteLine((long)((ulong)-4370)); Console.ReadKey(); } add "unchecked" for compilation private static void...
https://github.com/0xd4d/dnlib/blob/6f4dc6f0a7f86dbe12449b74d5501daf1192c187/src/DotNet/ICodedToken.cs#L215-L217 We know if `type` is ValueType or not exactly here, why create a possible wrong TypeSig?
Why `a == b` is not enough?  ``` class Program { int a; int b; } ``` Rename b to a by dnSpy, then SigCompare will think it's the...
I don't know why, but sometimes there's a reference `mscorlib, 65535.65535.65535.65535`, should IsGreaterAssemblyRefVersion ignore it? And what's the meaning of this version?
[conflict.zip](https://github.com/icsharpcode/ILSpy/files/9618656/conflict.zip) There're 2 `cmitems_0`, first one is a field, and second one is a variable, so the compiler treat the first one variable also, and show an error : use...
Original: ``` static void Main(string[] args) { try { Console.WriteLine(1); } catch (Exception ex) when (ex.InnerException is IOException or ApplicationException) { Console.WriteLine(2); } Console.ReadKey(); } ``` ILSpy: ``` private static...
Even if there's an `Item` property with `get_Item(...)` and `set_Item(...)`, Visual Studio doesn't treat it as indexer if `DefaultMemberAttribute` doesn't exist.
2 bugs
[test.zip](https://github.com/icsharpcode/ILSpy/files/9351710/test.zip) 1. Converter0.Convert should be `override` rather than `virtual` (If the dependency `log4net.dll` doesn't exist, ILSpy work fine) 2. See Class128.cctor ``` static Class128() { string_0 = "零壹贰叁肆伍陆柒捌玖"; string_1 =...