static int _g_get_BuilderType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Runtime.CompilerServices.AsyncMethodBuilderAttribute gen_to_be_invoked = (System.Runtime.CompilerServices.AsyncMethodBuilderAttribute)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.BuilderType); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <System.Type>(L, 2)) { System.Type _builderType = (System.Type)translator.GetObject(L, 2, typeof(System.Type)); System.Runtime.CompilerServices.AsyncMethodBuilderAttribute gen_ret = new System.Runtime.CompilerServices.AsyncMethodBuilderAttribute(_builderType); 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 System.Runtime.CompilerServices.AsyncMethodBuilderAttribute constructor!")); }