Class SunamoComparer.IListCharLength
- Namespace
- SunamoCompare
- Assembly
- SunamoCompare.dll
Comparer for IList<char> based on their length.
public class SunamoComparer.IListCharLength : ISunamoComparer<IList<char>>
- Inheritance
-
SunamoComparer.IListCharLength
- Implements
- Inherited Members
- Extension Methods
Fields
Instance
Singleton instance of the IListCharLength comparer.
public static SunamoComparer.IListCharLength Instance
Field Value
Methods
Asc(IList<char>, IList<char>)
Compares two character lists by length for ascending order sorting.
public int Asc(IList<char> firstValue, IList<char> secondValue)
Parameters
firstValueIList<char>The first list to compare.
secondValueIList<char>The second list to compare.
Returns
- int
A comparison result for ascending order.
Desc(IList<char>, IList<char>)
Compares two character lists by length for descending order sorting.
public int Desc(IList<char> firstValue, IList<char> secondValue)
Parameters
firstValueIList<char>The first list to compare.
secondValueIList<char>The second list to compare.
Returns
- int
A comparison result for descending order.