Class SunamoComparer.StringLength
- Namespace
- SunamoCompare
- Assembly
- SunamoCompare.dll
Comparer for strings based on their length.
public class SunamoComparer.StringLength : ISunamoComparer<string>
- Inheritance
-
SunamoComparer.StringLength
- Implements
- Inherited Members
- Extension Methods
Fields
Instance
Singleton instance of the StringLength comparer.
public static SunamoComparer.StringLength Instance
Field Value
Methods
Asc(string, string)
Compares two strings by length for ascending order sorting.
public int Asc(string firstValue, string secondValue)
Parameters
Returns
- int
A comparison result for ascending order.
Desc(string, string)
Compares two strings by length for descending order sorting.
public int Desc(string firstValue, string secondValue)
Parameters
Returns
- int
A comparison result for descending order.