static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { MongoDB.Bson.Serialization.CreatorMapDelegateCompiler gen_ret = new MongoDB.Bson.Serialization.CreatorMapDelegateCompiler(); 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.CreatorMapDelegateCompiler constructor!")); }
static int _m_CompileFactoryMethodDelegate(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); MongoDB.Bson.Serialization.CreatorMapDelegateCompiler gen_to_be_invoked = (MongoDB.Bson.Serialization.CreatorMapDelegateCompiler)translator.FastGetCSObj(L, 1); { System.Reflection.MethodInfo _methodInfo = (System.Reflection.MethodInfo)translator.GetObject(L, 2, typeof(System.Reflection.MethodInfo)); System.Delegate gen_ret = gen_to_be_invoked.CompileFactoryMethodDelegate(_methodInfo); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }