System.Collections.Generic.List.IndexOf(TileType)

Here are the examples of the csharp api System.Collections.Generic.List.IndexOf(TileType) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

19 Source : Lua_System_Collections_Generic_List_1_TileType.cs
with Apache License 2.0
from unwrap

[SLua.MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
	[UnityEngine.Scripting.Preserve]
	static public int IndexOf(IntPtr l) {
		try {
			#if DEBUG
			var method = System.Reflection.MethodBase.GetCurrentMethod();
			string methodName = GetMethodName(method);
			#if UNITY_5_5_OR_NEWER
			UnityEngine.Profiling.Profiler.BeginSample(methodName);
			#else
			Profiler.BeginSample(methodName);
			#endif
			#endif
			int argc = LuaDLL.lua_gettop(l);
			if(argc==2){
				System.Collections.Generic.List<TileType> self=(System.Collections.Generic.List<TileType>)checkSelf(l);
				TileType a1;
				a1 = (TileType)LuaDLL.luaL_checkinteger(l, 2);
				var ret=self.IndexOf(a1);
				pushValue(l,true);
				pushValue(l,ret);
				return 2;
			}
			else if(argc==3){
				System.Collections.Generic.List<TileType> self=(System.Collections.Generic.List<TileType>)checkSelf(l);
				TileType a1;
				a1 = (TileType)LuaDLL.luaL_checkinteger(l, 2);
				System.Int32 a2;
				checkType(l,3,out a2);
				var ret=self.IndexOf(a1,a2);
				pushValue(l,true);
				pushValue(l,ret);
				return 2;
			}
			else if(argc==4){
				System.Collections.Generic.List<TileType> self=(System.Collections.Generic.List<TileType>)checkSelf(l);
				TileType a1;
				a1 = (TileType)LuaDLL.luaL_checkinteger(l, 2);
				System.Int32 a2;
				checkType(l,3,out a2);
				System.Int32 a3;
				checkType(l,4,out a3);
				var ret=self.IndexOf(a1,a2,a3);
				pushValue(l,true);
				pushValue(l,ret);
				return 2;
			}
			pushValue(l,false);
			LuaDLL.lua_pushstring(l,"No matched override function IndexOf to call");
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
		#if DEBUG
		finally {
			#if UNITY_5_5_OR_NEWER
			UnityEngine.Profiling.Profiler.EndSample();
			#else
			Profiler.EndSample();
			#endif
		}
		#endif
	}