-
Dec 29th, 2008, 02:36 AM
#1
Thread Starter
Frenzied Member
[2.0] C# to IL at runtime?
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#?
-
Dec 29th, 2008, 02:51 AM
#2
Re: [2.0] C# to IL at runtime?
Haven't tried it yet but are you looking for the ILGenerator class?
-
Dec 29th, 2008, 07:20 AM
#3
Re: [2.0] C# to IL at runtime?
And all this time I thought IL was an abbreviation for Illinois.
-
Dec 31st, 2008, 09:04 AM
#4
Re: [2.0] C# to IL at runtime?
C# to IL should be easy enough but I'm not sure whether Reflector has exposed APIs to help you reverse engineer the IL.
-
Dec 31st, 2008, 09:59 AM
#5
Thread Starter
Frenzied Member
Re: [2.0] C# to IL at runtime?
Originally Posted by mendhak
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|