Wintellect.PowerCollections Namespace
Algorithms Class
Algorithms Methods
GhostDoc Pro Sample Help File

Algorithms..::..GetLexicographicalComparer<(Of <(<'T>)>)> Method (Comparison<(Of <(<'T>)>)>)

Creates an IComparer instance that can be used for comparing ordered sequences of type T; that is IEnumerable<Tgt;. This comparer can be uses for collections or algorithms that use sequences of T as an item type. The Lexicographics ordered of sequences is for comparison.

Namespace:  Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax


public static IComparer<IEnumerable<T>> GetLexicographicalComparer<T>(
	Comparison<T> comparison
)
where T : IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>
Public Shared Function GetLexicographicalComparer(Of T As {IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T), IComparable(Of T)}) ( _
	comparison As Comparison(Of T) _
) As IComparer(Of IEnumerable(Of T))
public:
generic<typename T>
where T : IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>, IComparable<T>
static IComparer<IEnumerable<T>^>^ GetLexicographicalComparer(
	Comparison<T>^ comparison
)

Type Parameters

T

Parameters

comparison
Type: Comparison<(Of <(<'T>)>)>
A comparison delegate used to compare individual items of type T.

Return Value

At IComparer<IEnumerable<T>> that compares sequences of T.