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); } }
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); } }