JC,
In addition to what Wiktor said, I think that this is a bad idea, to try
and dynamically create code and then execute it (it's also a pain). If you
are going to insist on using dynamically generated code, then you probably
should at least define an interface which can always be bound to by the
caller, which the dynamically generated code must implement. This will make
it easer to access the code.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"JC" <j.************@telecom.pt> wrote in message
news:33****************************@phx.gbl...
Hello,
I'm looking for examples of how to make dynamic creation
of code and dynamic execution of the same code. I want to
do some code dynamically and then I want to use it to get
some results. Then I want to store the C# code in a
database.
I found an example explaining how to do a sum of 100
numbers. What I didn't understand was the way to
generalize it's use.
Any solutions fot this ?
Thanks.