Class SunamoComparer.TWithIntSunamoComparer<T>
- Namespace
- SunamoCompare
- Assembly
- SunamoCompare.dll
Comparer for TWithIntCompare objects based on their Count property.
public class SunamoComparer.TWithIntSunamoComparer<T> : ISunamoComparer<TWithIntCompare<T>>
Type Parameters
TThe type of the value in TWithIntCompare.
- Inheritance
-
SunamoComparer.TWithIntSunamoComparer<T>
- Implements
- Inherited Members
- Extension Methods
Methods
Asc(TWithIntCompare<T>, TWithIntCompare<T>)
Compares two TWithIntCompare objects by Count for ascending order sorting.
public int Asc(TWithIntCompare<T> firstValue, TWithIntCompare<T> secondValue)
Parameters
firstValueTWithIntCompare<T>The first object to compare.
secondValueTWithIntCompare<T>The second object to compare.
Returns
- int
A comparison result for ascending order.
Desc(TWithIntCompare<T>, TWithIntCompare<T>)
Compares two TWithIntCompare objects by Count for descending order sorting.
public int Desc(TWithIntCompare<T> firstValue, TWithIntCompare<T> secondValue)
Parameters
firstValueTWithIntCompare<T>The first object to compare.
secondValueTWithIntCompare<T>The second object to compare.
Returns
- int
A comparison result for descending order.