i need to be able to create a dynamic C# function on the fly on an existing
type that exists within an assembly already loaded into memory. basically,
the body of this dynamic function will be loaded from an external source
(e.g. a file).

how can i best accomplish this task?

thanks for all your help,

--
Ben Callister

Re: dynamic C# functions... by Stephan

Stephan
Thu Jun 07 15:34:30 CDT 2007

The best is to use System.CodeDom.

An example is here:
http://msdn2.microsoft.com/en-us/library/system.codedom.codecompileunit.aspx

bcallister wrote:
> i need to be able to create a dynamic C# function on the fly on an existing
> type that exists within an assembly already loaded into memory. basically,
> the body of this dynamic function will be loaded from an external source
> (e.g. a file).
>
> how can i best accomplish this task?
>
> thanks for all your help,
>