I was wondering how you would take IL and convert it to C# and vise versa. (Reflector converts at least IL to C# using the Reflection library in .net)
Is it possible to go from C# to IL? If not how do you go from IL to C#?
Printable View
I was wondering how you would take IL and convert it to C# and vise versa. (Reflector converts at least IL to C# using the Reflection library in .net)
Is it possible to go from C# to IL? If not how do you go from IL to C#?
Haven't tried it yet but are you looking for the ILGenerator class?
And all this time I thought IL was an abbreviation for Illinois. :D
C# to IL should be easy enough but I'm not sure whether Reflector has exposed APIs to help you reverse engineer the IL.
Reflector is nothing special, it is basically just a gui for System.Reflection. Problem is finding the library to do C# to il and back.Quote:
Originally Posted by mendhak