Create Exe On Fly - 中国WEB开发者网络 (http://www.webasp.net) -- 技术教程 (http://www.webasp.net/article/) --- Create Exe On Fly (http://www.webasp.net/article/5/4816.htm) | ||||||||
| -- 作者:未知 -- 发布日期: 2003-07-12 | ||||||||
This is probably the most wonderful this I have explored in .net. What happens here is a user can actually make the EXE file on the fly. System.Runtime.Emit Namespace provides necessay class to do this. After compiling this file and running it on the Console a new file is generated in your folder called TestAsm.exe. This Exe file print's a message "Hello World" on the Console. Source Code:
Save this file as RuntimeEmit.cs and Compile C:/>csc RuntimeEmit.cs and run this file C:\>RuntimeEmit to run the Exe file generated C:\>TestAsm | ||||||||
| webasp.net |