static public int CopyTo(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 5) { System.Collections.Generic.List <System.Int32> self = (System.Collections.Generic.List <System.Int32>)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Int32[] a2; checkArray(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); System.Int32 a4; checkType(l, 5, out a4); self.CopyTo(a1, a2, a3, a4); pushValue(l, true); return(1); } else if (argc == 3) { System.Collections.Generic.List <System.Int32> self = (System.Collections.Generic.List <System.Int32>)checkSelf(l); System.Int32[] a1; checkArray(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); self.CopyTo(a1, a2); pushValue(l, true); return(1); } else if (argc == 2) { System.Collections.Generic.List <System.Int32> self = (System.Collections.Generic.List <System.Int32>)checkSelf(l); System.Int32[] a1; checkArray(l, 2, out a1); self.CopyTo(a1); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
static int CopyTo(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(System.Collections.Generic.List <string>), typeof(string[]))) { System.Collections.Generic.List <string> obj = (System.Collections.Generic.List <string>)ToLua.ToObject(L, 1); string[] arg0 = ToLua.CheckStringArray(L, 2); obj.CopyTo(arg0); return(0); } else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(System.Collections.Generic.List <string>), typeof(string[]), typeof(int))) { System.Collections.Generic.List <string> obj = (System.Collections.Generic.List <string>)ToLua.ToObject(L, 1); string[] arg0 = ToLua.CheckStringArray(L, 2); int arg1 = (int)LuaDLL.lua_tonumber(L, 3); obj.CopyTo(arg0, arg1); return(0); } else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(System.Collections.Generic.List <string>), typeof(int), typeof(string[]), typeof(int), typeof(int))) { System.Collections.Generic.List <string> obj = (System.Collections.Generic.List <string>)ToLua.ToObject(L, 1); int arg0 = (int)LuaDLL.lua_tonumber(L, 2); string[] arg1 = ToLua.CheckStringArray(L, 3); int arg2 = (int)LuaDLL.lua_tonumber(L, 4); int arg3 = (int)LuaDLL.lua_tonumber(L, 5); obj.CopyTo(arg0, arg1, arg2, arg3); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: System.Collections.Generic.List<string>.CopyTo")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int CopyTo(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { System.Collections.Generic.List <UnityEngine.GameObject> obj = (System.Collections.Generic.List <UnityEngine.GameObject>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <UnityEngine.GameObject>)); UnityEngine.GameObject[] arg0 = ToLua.CheckObjectArray <UnityEngine.GameObject>(L, 2); obj.CopyTo(arg0); return(0); } else if (count == 3) { System.Collections.Generic.List <UnityEngine.GameObject> obj = (System.Collections.Generic.List <UnityEngine.GameObject>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <UnityEngine.GameObject>)); UnityEngine.GameObject[] arg0 = ToLua.CheckObjectArray <UnityEngine.GameObject>(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.CopyTo(arg0, arg1); return(0); } else if (count == 5) { System.Collections.Generic.List <UnityEngine.GameObject> obj = (System.Collections.Generic.List <UnityEngine.GameObject>)ToLua.CheckObject(L, 1, typeof(System.Collections.Generic.List <UnityEngine.GameObject>)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); UnityEngine.GameObject[] arg1 = ToLua.CheckObjectArray <UnityEngine.GameObject>(L, 3); int arg2 = (int)LuaDLL.luaL_checknumber(L, 4); int arg3 = (int)LuaDLL.luaL_checknumber(L, 5); obj.CopyTo(arg0, arg1, arg2, arg3); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: System.Collections.Generic.List<UnityEngine.GameObject>.CopyTo")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public void CopyTo(T [] array, int index) { lock (root) { list.CopyTo(array, index); } }
public void CopyTo(T[] array, int arrayIndex) { lock (_root) { _list.CopyTo(array, arrayIndex); } }