static StackObject *InitListView_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); SuperScrollView.LoopListViewInitParam @initParam = (SuperScrollView.LoopListViewInitParam) typeof(SuperScrollView.LoopListViewInitParam).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Func <SuperScrollView.LoopListView2, System.Int32, SuperScrollView.LoopListViewItem2> @onGetItemByIndex = (System.Func <SuperScrollView.LoopListView2, System.Int32, SuperScrollView.LoopListViewItem2>) typeof(System.Func <SuperScrollView.LoopListView2, System.Int32, SuperScrollView.LoopListViewItem2>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 8); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Int32 @itemTotalCount = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 4); SuperScrollView.LoopListView2 instance_of_this_method = (SuperScrollView.LoopListView2) typeof(SuperScrollView.LoopListView2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0); __intp.Free(ptr_of_this_method); instance_of_this_method.InitListView(@itemTotalCount, @onGetItemByIndex, @initParam); return(__ret); }
static int InitListView(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3) { SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1); int arg0 = (int)LuaDLL.luaL_checkinteger(L, 2); System.Func <SuperScrollView.LoopListView2, int, SuperScrollView.LoopListViewItem2> arg1 = (System.Func <SuperScrollView.LoopListView2, int, SuperScrollView.LoopListViewItem2>)ToLua.CheckDelegate <System.Func <SuperScrollView.LoopListView2, int, SuperScrollView.LoopListViewItem2> >(L, 3); obj.InitListView(arg0, arg1); return(0); } else if (count == 4 && TypeChecker.CheckTypes <int, System.Func <SuperScrollView.LoopListView2, int, SuperScrollView.LoopListViewItem2>, SuperScrollView.LoopListViewInitParam>(L, 2)) { SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1); int arg0 = (int)LuaDLL.lua_tointeger(L, 2); System.Func <SuperScrollView.LoopListView2, int, SuperScrollView.LoopListViewItem2> arg1 = (System.Func <SuperScrollView.LoopListView2, int, SuperScrollView.LoopListViewItem2>)ToLua.ToObject(L, 3); SuperScrollView.LoopListViewInitParam arg2 = (SuperScrollView.LoopListViewInitParam)ToLua.ToObject(L, 4); obj.InitListView(arg0, arg1, arg2); return(0); } else if (count == 4 && TypeChecker.CheckTypes <LuaInterface.LuaTable, int, LuaInterface.LuaFunction>(L, 2)) { SuperScrollView.LoopListView2 obj = (SuperScrollView.LoopListView2)ToLua.CheckObject <SuperScrollView.LoopListView2>(L, 1); LuaTable arg0 = ToLua.ToLuaTable(L, 2); int arg1 = (int)LuaDLL.lua_tointeger(L, 3); LuaFunction arg2 = ToLua.ToLuaFunction(L, 4); obj.InitListView(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: SuperScrollView.LoopListView2.InitListView")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }