Table of Contents

Class SunamoComparerICompare.StringLength.Asc

Namespace
SunamoCompare
Assembly
SunamoCompare.dll

Comparer for strings by length in ascending order.

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

Constructors

Asc(ISunamoComparer<string>)

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

public Asc(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 ascending order.