private bool Equals(EditLocationResults other) { return(string.Equals(Zip, other.Zip) && NumEvents == other.NumEvents && NumCompletionEvents == other.NumCompletionEvents && NumLocations == other.NumLocations && AppliedEditLocations.Equals(other.AppliedEditLocations) && OtherEditLocations.Equals(other.OtherEditLocations)); }
public void Add(IEditLocationResults other) { NumEvents += other.NumEvents; NumCompletionEvents += other.NumCompletionEvents; NumLocations += other.NumLocations; AppliedEditLocations.AddAll(other.AppliedEditLocations); OtherEditLocations.AddAll(other.OtherEditLocations); }
public override int GetHashCode() { unchecked { var hashCode = 1928; hashCode = (hashCode * 397) ^ Zip.GetHashCode(); hashCode = (hashCode * 397) ^ NumEvents; hashCode = (hashCode * 397) ^ NumCompletionEvents; hashCode = (hashCode * 397) ^ NumLocations; hashCode = (hashCode * 397) ^ AppliedEditLocations.GetHashCode(); hashCode = (hashCode * 397) ^ OtherEditLocations.GetHashCode(); return(hashCode); } }