static public int AsReadOnly(IntPtr l) { try { IntList self = (IntList)checkSelf(l); var ret = self.AsReadOnly(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }