Noesis.Javascript.Dynamic.JContext.TryInvoke C# (CSharp) Method

TryInvoke() public method

public TryInvoke ( InvokeBinder binder, object args, object &result ) : bool
binder InvokeBinder
args object
result object
return bool
        public override bool TryInvoke(InvokeBinder binder, object[] args, out object result)
        {
            result = null;

            if (args.Length > 0)
            {
                result = Evaluate(args[0].ToString());
                args.Skip(1).Select(x => x.ToString()).ToList().ForEach(Execute);                
            }
            
            return true;
        }