Table of Contents

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

SunamoComparer.IListCharLength

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

firstValue IList<char>

The first list to compare.

secondValue IList<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

firstValue IList<char>

The first list to compare.

secondValue IList<char>

The second list to compare.

Returns

int

A comparison result for descending order.