Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = CheckID.GetHashCode();

            hash = hash * 17 + Values?.GetHashCode() ?? 0;
            hash = hash * 17 + Invert.GetHashCode();
            return(hash);
        }
Beispiel #2
0
 /// <summary>
 /// Serves as a hash function for a particular type. GetHashCode() is suitable
 /// for use in hashing algorithms and data structures like a hash table.
 /// </summary>
 /// <returns>A hash code for the current object.</returns>
 public override int GetHashCode()
 {
     return(CheckID.GetHashCode());
 }