static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Net.PkgMail>(L, 2)) { Net.PkgMail net = (Net.PkgMail)translator.GetObject(L, 2, typeof(Net.PkgMail)); xc.MailInfo __cl_gen_ret = new xc.MailInfo(net); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { xc.MailInfo __cl_gen_ret = new xc.MailInfo(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.MailInfo constructor!")); }
public MailInfo(Net.PkgMail net) { netEmailInfo = net; }