Hello!
Unfortunately VBScript's
Cheers!
Unfortunately VBScript's
New
operator works only on VBScript classes. To instantiate a CLR class, you have to use HostFunctions.newObj
:engine.AddHostObject("host", new HostFunctions()); engine.AddHostType("Dictionary", typeof(Dictionary<string, object>)); engine.Execute(@" dict = host.newObj(Dictionary) dict.Add ""abc"", 123 ");