static int _m_CompareTo(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Enum __cl_gen_to_be_invoked = (System.Enum)translator.FastGetCSObj(L, 1); try { { object target = translator.GetObject(L, 2, typeof(object)); int __cl_gen_ret = __cl_gen_to_be_invoked.CompareTo(target); LuaAPI.xlua_pushinteger(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }