public static void CreateManticoreEngine(String script, String name) { if (Engine != null && Engine.IsStarted) { throw new InvalidOperationException("You must shut down the existing engine before creating a new one."); } var e = new ManticoreEngine(); e.Converter = new DefaultConverter <JsBackedObject>(e, (native) => native.impl, (jsErr) => new ManticoreException(jsErr)); // Typically, you would add your own native method implementations to // the ManticoreJsObject here, before you load your script e.LoadScript(script, name); Engine = e; }