public int CompareTo(object other) { // We are assuming other is always IComparable to avoid overhead of "is ulong" check // Array.BinarySearch always used the object's ICompare even if an IComparer was specified until .NET 4.5 // https://stackoverflow.com/a/19319601/17027 return(LessThan.CompareTo(((FormattingRule)other).LessThan)); }
public int CompareTo(FormattingRule other) { return(LessThan.CompareTo(other.LessThan)); }