Esempio n. 1
0
        public override int GetHashCode()
        {
            int hashCode = 0;

            unchecked
            {
                if (_matches != null)
                {
                    hashCode += 1000000007 * _matches.GetHashCode();
                }
                if (Parent != null)
                {
                    hashCode += 1000000009 * Parent.GetHashCode();
                }
                if (null != Town)
                {
                    hashCode += 1000000087 * Town.GetHashCode();
                }
                if (Variants != null)
                {
                    hashCode += 1000000093 * Variants.GetHashCode();
                }
                hashCode += 1000000097 * Depth.GetHashCode();
            }
            return(hashCode);
        }
Esempio n. 2
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 public override int GetHashCode()
 {
     return(Language.GetHashCode() ^
            Script.GetHashCode() ^
            Region.GetHashCode() ^
            Variants.GetHashCode() ^
            Extensions.GetHashCode() ^
            PrivateUse.GetHashCode());
 }
Esempio n. 3
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 public override int GetHashCode()
 {
     return((Language is null ? 0 : Language.GetHashCode()) ^
            (Script is null ? 0 : Script.GetHashCode()) ^
            (Region is null ? 0 : Region.GetHashCode()) ^
            Variants.GetHashCode() ^
            Extensions.GetHashCode() ^
            PrivateUse.GetHashCode());
 }