Esempio n. 1
0
 private bool Equals(NamedLong 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(NamedLong other)
 {
     var result = Value - other.Value; return((result < 0) ? -1 : (result == 0 ? 0 : 1));
 }