public object Call(object self, Context context, object[] arguments) { return this.func(self, context, arguments); }
public void DefineAndCallFuncMethod() { IMethod method = new FuncMethod(null, (obj, context, args) => ((string)obj).Length); Assert.IsNull(method.Type); Assert.AreEqual(3, method.Call("foo", null, null)); }