static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute gen_ret = new MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute(); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) >= 1 && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 2) || (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))) { string[] _argumentNames = translator.GetParams <string>(L, 2); MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute gen_ret = new MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute(_argumentNames); translator.Push(L, 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 MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute constructor!")); }
static int _g_get_ArgumentNames(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute gen_to_be_invoked = (MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.ArgumentNames); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _m_Apply(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute gen_to_be_invoked = (MongoDB.Bson.Serialization.Attributes.BsonFactoryMethodAttribute)translator.FastGetCSObj(L, 1); { MongoDB.Bson.Serialization.BsonCreatorMap _creatorMap = (MongoDB.Bson.Serialization.BsonCreatorMap)translator.GetObject(L, 2, typeof(MongoDB.Bson.Serialization.BsonCreatorMap)); gen_to_be_invoked.Apply(_creatorMap); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }