difference between IComparable and IComparer [duplicate]
As the name suggests, IComparable<T> reads out I’m comparable. IComparable<T> when defined for T lets you compare the current instance with another instance of same type. IComparer<T> reads out I’m a comparer, I compare. IComparer<T> is used to compare any two instances of T, typically outside the scope of the instances of T. As to … Read more