When I am using the following snippet, I get a ScrptEngineException, that the object does not support the Property or Method.
var engine = new JScriptEngine();
engine.AddHostType("String", typeof(System.String));
engine.ExecuteCommand("test = 'variabel'; test.StartsWith('nice');");
I have tried some other Stringfunctions like IndexOf, ToArray (Extension) and some others, but the do not seem to work.
Can someone help me out?