tags:

views:

48

answers:

3

Is it possible? Self modifying codes based on users choices.

A: 

Certainly. Reflection allows code to be compiled on-the-fly and executed.

Adam Maras
+1  A: 

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.

SLaks
thanks for your answer, I don't know yet what I'm trying to do, I'm still just asking if its possible. But if I start coding, I'll definitely have an answer to your question. thanks again.
A: 

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

Steven A. Lowe
ok thanks for answering