Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (OldSource != null ? OldSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NewSource != null ? NewSource.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Namespace.GetHashCode();
         hashCode = (hashCode * 397) ^ Name.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Type;
         hashCode = (hashCode * 397) ^ (OldSource != null ? OldSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (NewSource != null ? NewSource.GetHashCode() : 0);
         return(hashCode);
     }
 }