protected bool Equals(YourAverageNonComparableType other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(identity, other.identity)); }
protected bool Equals(YourAverageNonComparableType other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return string.Equals(identity, other.identity); }