public override int GetHashCode() { unchecked { int hashCode = 99689; int multiplier = 102437; hashCode = (hashCode * multiplier) ^ IntroducedAtVersion.GetHashCode(); hashCode = (hashCode * multiplier) ^ (string.IsNullOrEmpty(DepricatedAtVersion) ? 0 : DepricatedAtVersion.GetHashCode()); return(hashCode); } }
public virtual bool Equals(DiscoveryVersion other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } var t = GetType(); if (t != other.GetType()) { return(false); } return (IntroducedAtVersion.Equals(other.IntroducedAtVersion, StringComparison.OrdinalIgnoreCase) && DepricatedAtVersion.Equals(other.DepricatedAtVersion, StringComparison.OrdinalIgnoreCase)); }