Esempio n. 1
0
 private bool Equals(NamedInt other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(Value, other.Value));
 }
Esempio n. 2
0
 public int CompareTo(NamedInt other)
 {
     return(Value - other.Value);
 }