static int _m_IsAlwaysNormalized(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Text.Encoding gen_to_be_invoked = (System.Text.Encoding)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { bool gen_ret = gen_to_be_invoked.IsAlwaysNormalized( ); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <System.Text.NormalizationForm>(L, 2)) { System.Text.NormalizationForm _form; translator.Get(L, 2, out _form); bool gen_ret = gen_to_be_invoked.IsAlwaysNormalized( _form); LuaAPI.lua_pushboolean(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.Text.Encoding.IsAlwaysNormalized!")); }