static public void Main() { try { //It is a good idea to call CSScript.Evaluator.Reset() between tests. //Though resetting is omitted in these samples to improve the readability. var host = new HostApp(); host.Eval_Returning_Result(); host.Eval_Void(); host.Eval_Void_With_Pure_Mono(); host.LoadCode(); host.LoadCode_With_Interface_Type_Casting(); host.LoadCode_With_Interface_Alignment(); host.LoadCode_With_Host_Referencing(); host.CompileCode_With_CSScript_CreateObject(); host.CompileCode_With_Assembly_CreateInstance(); host.LoadMethod(); host.LoadMethod_With_InterfaceAlignment(); host.LoadMethod_With_Host_Referencing(); host.CreateDelegate(); host.CodeDOM_Debug(); host.Evaluator_Debug(); } catch (Exception e) { Console.WriteLine(e.ToString()); } }