Esempio n. 1
0
 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);
 }