static int _m_GetDiscriminator(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.Serialization.Conventions.StandardDiscriminatorConvention gen_to_be_invoked = (MongoDB.Bson.Serialization.Conventions.StandardDiscriminatorConvention)translator.FastGetCSObj(L, 1); { System.Type _nominalType = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); System.Type _actualType = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); MongoDB.Bson.BsonValue gen_ret = gen_to_be_invoked.GetDiscriminator(_nominalType, _actualType); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _g_get_ElementName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.Serialization.Conventions.StandardDiscriminatorConvention gen_to_be_invoked = (MongoDB.Bson.Serialization.Conventions.StandardDiscriminatorConvention)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, gen_to_be_invoked.ElementName); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }