Table of Contents

Class SunamoComparerICompare.StringLength.Desc

Namespace
SunamoCompare
Assembly
SunamoCompare.dll

Comparer for strings by length in descending order.

public class SunamoComparerICompare.StringLength.Desc : IComparer<string>
Inheritance
SunamoComparerICompare.StringLength.Desc
Implements
Inherited Members
Extension Methods

Constructors

Desc(ISunamoComparer<string>)

Initializes a new instance of the Desc comparer. As parameter you can insert SunamoComparer.IListCharLength or SunamoComparer.StringLength.

public Desc(ISunamoComparer<string> sc)

Parameters

sc ISunamoComparer<string>

The comparer to use for comparison.

Methods

Compare(string?, string?)

Compares two strings by length.

public int Compare(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.