Home »

Can I write IL programs directly?

Question ListCategory: ASP.NETCan I write IL programs directly?
denielshakespeare5 author asked 8 years ago
1 Answers
jamessmith05 author answered 8 years ago

Yes. Peter Drayton posted this simple example to the DOTNET mailing list:.assembly MyAssembly {}
.class MyApp {
.method static void Main() {
.entrypoint
ldstr “Hello, IL!”
call void System.Console::WriteLine(class System.Object)
ret
}
}
Just put this into a file called hello.il, and then run ilasm hello.il. An exe
assembly will be generated.

Please login or Register to Submit Answer