Is there a vb.net program that can modify its code at runtime?
Is it possible? 开发者_高级运维Self modifying codes based on users choices.
It's possible but complicated; look at the classes in the System.Reflection.Emit namespace.
However, you can probably do something simpler; please tell us what you're trying to do.
yes - see prior two answers.
but don't, unless there is no other way; debugging will be a nightmare
consider plug-ins instead, if possible
Certainly. Reflection allows code to be compiled on-the-fly and executed.
精彩评论