[Mono-list] Mono - Compiler as Service, how to create instance of the compiled class
bhardwaj_rajesh
bhardwaj_rajesh at hotmail.com
Thu Feb 16 19:19:26 UTC 2012
I am using this simple program :- var evaluator = new Evaluator( new
CompilerSettings(), new Report(new ConsoleReportPrinter()));
// Make it reference our own assembly so it can use IFoo
evaluator.ReferenceAssembly(typeof(IFoo).Assembly);
// Feed it some code
evaluator.Compile(
@"
public class Foo : MonoCompilerDemo.IFoo
{
public string Bar(string s) { return s.ToUpper(); }
}");
Is there a way , I can use the instance of compiled class foo with in the
main program. There is overload in compile that takes a delegate, but I am
unable to understand its usage
--
View this message in context: http://mono.1490590.n4.nabble.com/Mono-Compiler-as-Service-how-to-create-instance-of-the-compiled-class-tp4395185p4395185.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list