static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    var gen_ret = new ILRuntimeDemo.TestClassBaseAdapter.Adapter();
                    translator.Push(L, gen_ret);

                    return(1);
                }
                if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <ILRuntime.Runtime.Enviorment.AppDomain>(L, 2) && translator.Assignable <ILRuntime.Runtime.Intepreter.ILTypeInstance>(L, 3))
                {
                    ILRuntime.Runtime.Enviorment.AppDomain      _appdomain = (ILRuntime.Runtime.Enviorment.AppDomain)translator.GetObject(L, 2, typeof(ILRuntime.Runtime.Enviorment.AppDomain));
                    ILRuntime.Runtime.Intepreter.ILTypeInstance _instance  = (ILRuntime.Runtime.Intepreter.ILTypeInstance)translator.GetObject(L, 3, typeof(ILRuntime.Runtime.Intepreter.ILTypeInstance));

                    var gen_ret = new ILRuntimeDemo.TestClassBaseAdapter.Adapter(_appdomain, _instance);
                    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 ILRuntimeDemo.TestClassBaseAdapter.Adapter constructor!"));
        }
        static int _g_get_ILInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ILRuntimeDemo.TestClassBaseAdapter.Adapter gen_to_be_invoked = (ILRuntimeDemo.TestClassBaseAdapter.Adapter)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ILInstance);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _s_set_Value(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ILRuntimeDemo.TestClassBaseAdapter.Adapter gen_to_be_invoked = (ILRuntimeDemo.TestClassBaseAdapter.Adapter)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Value = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _m_ToString(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ILRuntimeDemo.TestClassBaseAdapter.Adapter gen_to_be_invoked = (ILRuntimeDemo.TestClassBaseAdapter.Adapter)translator.FastGetCSObj(L, 1);



                {
                    var gen_ret = gen_to_be_invoked.ToString(  );
                    LuaAPI.lua_pushstring(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_TestVirtual(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                ILRuntimeDemo.TestClassBaseAdapter.Adapter gen_to_be_invoked = (ILRuntimeDemo.TestClassBaseAdapter.Adapter)translator.FastGetCSObj(L, 1);



                {
                    string _str = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.TestVirtual(_str);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }