|
||
|
|
#1 (permalink) |
|
Master of the Internet
|
In C++, you can write ASM code directly into the source using an __asm block. I need similar functionality to this in C#, but I need to write MSIL directly into my program, alongside the C# code itself. I heard there was a VS plug-in out there somewhere that could enable me to do this, but I've not found it. If all else fails, I suppose I could open my build in Reflector and modify the MSIL with Reflexil, but I'd rather do it all in Visual Studio.
Is there any way?
__________________
go fish |
|
|
|
|
|
#2 (permalink) | |
|
Forum Expert
Join Date: Jan 2008
Posts: 286
|
Quote:
(G-talk me if it is a secret) |
|
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
|
Use the *Builder classes (AsseblyBuilder, TypeBuilder, MethodBuilder ...).
Take a look at the ./scripts/misc/emitter.cs in RunUO, there's a quite working example.
__________________
Angels are falling the very last time, down they're burning in hate and decline, unfaithful and violent we're breaking the spell, we're god, we're scissor, in heaven and hell! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|