Exemplo n.º 1
0
        public override void CallAsProcedure(int methodNumber, IValue[] arguments)
        {
            var binding = _methods.GetMethod(methodNumber);

            try
            {
                binding(this, arguments);
            }
            catch (System.Reflection.TargetInvocationException e)
            {
                throw e.InnerException;
            }
        }
Exemplo n.º 2
0
 protected override void CallOwnProcedure(int index, IValue[] arguments)
 {
     _methods.GetMethod(index)(this, arguments);
 }
Exemplo n.º 3
0
 protected override IValue CallOwnFunction(int index, IValue[] arguments)
 {
     return(_ownMethods.GetMethod(index)(this, arguments));
 }
Exemplo n.º 4
0
 public void CallAsProcedure(int methodNumber, IValue[] arguments)
 {
     _methods.GetMethod(methodNumber)(this, arguments);
 }
Exemplo n.º 5
0
        public override void CallAsProcedure(int methodNumber, IValue[] arguments)
        {
            var m = _methods.GetMethod(methodNumber);

            m.Invoke(this, arguments);
        }