Exemplo n.º 1
0
 public object Evaluate(string code, object @event)
 {
     if (evaluateFunction == null)
     {
         return(null);
     }
     Object[] args = new Object[2];
     args[0] = code;
     args[1] = ScriptableObject.CreateWrapper(@event);
     return(evaluateFunction.Invoke(evaluateFunction.GetParent(), args));
 }
Exemplo n.º 2
0
 public object Invoke(object args = null)
 {
     return(function?.Invoke(_this, args));
 }                                                                                  //use _engine.HandleJSException(e) or _engine.GetJSErrorMessage(jse)