Ejemplo n.º 1
0
        public static int hasheq(object o)
        {
            if (o == null)
            {
                return(0);
            }

            IHashEq ihe = o as IHashEq;

            if (ihe != null)
            {
                return(dohasheq(ihe));
            }

            if (Util.IsNumeric(o))
            {
                return(Numbers.hasheq(o));
            }

            String s = o as string;

            if (s != null)
            {
                return(Murmur3.HashInt(s.GetHashCode()));
            }

            return(o.GetHashCode());
        }
Ejemplo n.º 2
0
        public static int hasheq(object o)
        {
            if (o == null)
            {
                return(0);
            }

            IHashEq ihe = o as IHashEq;

            if (ihe != null)
            {
                return(dohasheq(ihe));
            }

            if (Util.IsNumeric(o))
            {
                return(Numbers.hasheq(o));
            }

            return(o.GetHashCode());
        }
Ejemplo n.º 3
0
 private static int dohasheq(IHashEq ihe)
 {
     return ihe.hasheq();
 }
Ejemplo n.º 4
0
 private static int dohasheq(IHashEq ihe)
 {
     return(ihe.hasheq());
 }