public dynamic Invoke(object target, string name, object[] args) { object[] invokeArgs = args; if (name == null) { invokeArgs = new object[args.Length + 1]; invokeArgs[0] = target; Array.Copy(args, 0, invokeArgs, 1, args.Length); } return(ScriptUtils.Invoke(_script, null, name, invokeArgs)); }
public string Convert(long startPos, string s) { return((string)ScriptUtils.Invoke(_document.Container, null, "ConvertString", startPos, s)); }
public byte[] Convert(long startPos, byte[] ba) { return((byte[])ScriptUtils.Invoke(_document.Container, null, "ConvertHex", startPos, ba)); }