示例#1
0
        public HashCodeCombiner Add(object o)
        {
            int hashCode = (o != null)
                ? (o is string s ? (int)XxHashUnsafe.ComputeHash(s) : o.GetHashCode())
                : 0;

            return(Add(hashCode));
        }
示例#2
0
        public HashCodeCombiner Add(string s)
        {
            var hashCode = (s != null) ? XxHashUnsafe.ComputeHash(s) : 0;

            return(Add((int)hashCode));
        }