static int _m_FindLast(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Collections.Generic.List <string> gen_to_be_invoked = (System.Collections.Generic.List <string>)translator.FastGetCSObj(L, 1); { System.Predicate <string> _match = translator.GetDelegate <System.Predicate <string> >(L, 2); string gen_ret = gen_to_be_invoked.FindLast( _match); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static public int FindLast(IntPtr l) { try { System.Collections.Generic.List <WWWRequest> self = (System.Collections.Generic.List <WWWRequest>)checkSelf(l); System.Predicate <WWWRequest> a1; checkDelegate(l, 2, out a1); var ret = self.FindLast(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static int _m_FindLast(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Collections.Generic.List <object> __cl_gen_to_be_invoked = (System.Collections.Generic.List <object>)translator.FastGetCSObj(L, 1); try { { System.Predicate <object> match = translator.GetDelegate <System.Predicate <object> >(L, 2); object __cl_gen_ret = __cl_gen_to_be_invoked.FindLast(match); translator.PushAny(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
public T FindLast(Predicate <T> match) { return(list.FindLast(match)); }