Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = KeyType?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (ValueType?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ HashKey.GetHashCode();
         hashCode = (hashCode * 397) ^ KeyTypeState.GetHashCode();
         hashCode = (hashCode * 397) ^ ValueTypeState.GetHashCode();
         return(hashCode);
     }
 }
Beispiel #2
0
 protected bool Equals(TelepathyMapSchema other)
 {
     return(string.Equals(KeyType, other.KeyType) && string.Equals(ValueType, other.ValueType) &&
            HashKey.Equals(other.HashKey) && KeyTypeState.Equals(other.KeyTypeState) &&
            ValueTypeState.Equals(other.ValueTypeState));
 }