예제 #1
0
 /// <summary>
 /// Determines if the objects are equal
 /// </summary>
 /// <param name="other">Other object to compare to</param>
 /// <returns>True if they are equal, false otherwise</returns>
 public override bool Equals(TableBaseClass other) => ToString().Equals(other.ToString(), StringComparison.OrdinalIgnoreCase);
예제 #2
0
 /// <summary>
 /// Compares the object to another object
 /// </summary>
 /// <param name="other">Object to compare to</param>
 /// <returns>0 if they are equal, -1 if this is smaller, 1 if it is larger</returns>
 public override int CompareTo(TableBaseClass other) => string.Compare(other.ToString(), ToString(), StringComparison.OrdinalIgnoreCase);