static public int ForEach(IntPtr l) { try { IntList self = (IntList)checkSelf(l); System.Action <System.Int32> a1; LuaDelegation.checkDelegate(l, 2, out a1); self.ForEach(a1); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }