Table of Contents

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

SunamoComparer.StringLength

Methods

Asc(string, string)

Compares two strings by length for ascending order sorting.

public int Asc(string firstValue, string secondValue)

Parameters

firstValue string

The first string to compare.

secondValue string

The second string to compare.

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

firstValue string

The first string to compare.

secondValue string

The second string to compare.

Returns

int

A comparison result for descending order.