Class StringUtils.ComparerUsingToString<T>
Implementation of IComparer<T> interface that compares two objects using ToString() methods.
public class StringUtils.ComparerUsingToString<T> : IComparer<T>
Type Parameters
TType of objects to compare.
- Inheritance
-
StringUtils.ComparerUsingToString<T>
- Implements
-
IComparer<T>
Methods
- Compare(T?, T?)
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.