public override int GetHashCode() { unchecked { var hashCode = MatchA.GetHashCode(); hashCode = (hashCode * 397) ^ MatchB.GetHashCode(); hashCode = (hashCode * 397) ^ MatchC.GetHashCode(); hashCode = (hashCode * 397) ^ MatchD.GetHashCode(); return(hashCode); } }
public bool Equals(CellMapTileSelectorKey other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(MatchA.Equals(other.MatchA) && MatchB.Equals(other.MatchB) && MatchC.Equals(other.MatchC) && MatchD.Equals(other.MatchD)); }