icsharpcode / ILSpy

.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
21.45k stars 3.35k forks source link

If compiler generated code is converted by ILSpy into C#, these (.NET) names are invalid in C# #408

Closed MartinMulderTurien closed 7 years ago

MartinMulderTurien commented 11 years ago

If the compiler generates code, like anonymous methods, the methods created by the compiler use characters like '$'. When ILSpy converts these functions into C#, the names remain, cause illegal names in C#.

siegfriedpammer commented 7 years ago

This was likely fixed in the new decompiler engine (which just landed on the master branch).