Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int result = converter != null?converter.GetHashCode() : 0;

            result = 31 * result + (instance != null ? instance.GetHashCode() : 0);
            result = 31 * result + (method != null ? method.GetHashCode() : 0);
            return(result);
        }
        static int _m_GetHashCode(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                System.Reflection.MethodInfo gen_to_be_invoked = (System.Reflection.MethodInfo)translator.FastGetCSObj(L, 1);



                {
                    int gen_ret = gen_to_be_invoked.GetHashCode(  );
                    LuaAPI.xlua_pushinteger(L, gen_ret);



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