예제 #1
0
 public bool Equals(SimpleMetadata <T> other)
 {
     if (object.ReferenceEquals(other, null))
     {
         return(false);
     }
     if (this.GetType() != other.GetType())
     {
         return(false);
     }
     return(this.CompareTo(other) == CompareIsEqual);
 }
예제 #2
0
 public virtual int CompareTo(SimpleMetadata <T> other) => Comparer.Compare(this.Value, other.Value);