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.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to