Algorithms..::..GetLexicographicalComparer<(Of <(<'T>)>)> Method (IComparer<(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>( IComparer<T> comparer ) where T : IComparable<T>
Public Shared Function GetLexicographicalComparer(Of T As IComparable(Of T)) ( _ comparer As IComparer(Of T) _ ) As IComparer(Of IEnumerable(Of T))
public: generic<typename T> where T : IComparable<T> static IComparer<IEnumerable<T>^>^ GetLexicographicalComparer( IComparer<T>^ comparer )
Type Parameters
- T
Parameters
- comparer
- Type: IComparer<(Of <(<'T>)>)>
A comparer instance used to compare individual items of type T.