Beispiel #1
0
            }             // func GetTargetDynamicCall

            private DynamicMetaObject GetTargetDynamicCall(CallSiteBinder binder, Type typeReturn, DynamicMetaObject arg)
            {
                return(GetTargetDynamicCall(binder, typeReturn,
                                            new Expression[]
                {
                    GetFirstResultExpression(),
                    LuaEmit.Convert(Lua.GetRuntime(binder), arg.Expression, arg.LimitType, typeof(object), false)
                }
                                            ));
            }             // func GetTargetDynamicCall
Beispiel #2
0
            }             // func GetTargetDynamicCall

            private DynamicMetaObject GetTargetDynamicCall(CallSiteBinder binder, Type typeReturn, DynamicMetaObject[] args)
            {
                return(GetTargetDynamicCall(binder, typeReturn,
                                            LuaEmit.CreateDynamicArgs(Lua.GetRuntime(binder), GetFirstResultExpression(), typeof(object), args, mo => mo.Expression, mo => mo.LimitType)
                                            ));
            }             // func GetTargetDynamicCall
Beispiel #3
0
            }             // func BindGetIndex

            public override DynamicMetaObject BindSetIndex(SetIndexBinder binder, DynamicMetaObject[] indexes, DynamicMetaObject value)
            {
                return(GetTargetDynamicCall(binder, binder.ReturnType,
                                            LuaEmit.CreateDynamicArgs(Lua.GetRuntime(binder), GetFirstResultExpression(), typeof(object), indexes, value, mo => mo.Expression, mo => mo.LimitType)
                                            ));
            }             // func BindSetIndex