public static int DeSerialize(IntPtr l) { int result; try { MailComponent mailComponent = (MailComponent)LuaObject.checkSelf(l); DSMailNtf msg; LuaObject.checkType <DSMailNtf>(l, 2, out msg); mailComponent.DeSerialize(msg); LuaObject.pushValue(l, true); result = 1; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }