Method Create
View SourceCreate<T1, T2>(IComparer<T1>?, IComparer<T2>?)
Creates a custom IComparer<T> for a (T1, T2) based on custom comparers for each component.
Declaration
public static IComparer<(T1, T2)> Create<T1, T2>(IComparer<T1>? comparer1, IComparer<T2>? comparer2)
Parameters
Type | Name | Description |
---|---|---|
IComparer<T1> | comparer1 | The custom comparer for |
IComparer<T2> | comparer2 | The custom comparer for |
Returns
Type | Description |
---|---|
IComparer<(T1, T2)> | An IComparer<T> that can be used to compare two (T1, T2) using the provided comparers for each component. |
Type Parameters
Name | Description |
---|---|
T1 | The type of the first element of the (T1, T2) |
T2 | The type of the second element of the (T1, T2) |