Compares two sequences.
public static int SequenceCompare<T>(this IEnumerable<T> first, IEnumerable<T> second)
parameter | description |
---|---|
T | The type of the elements. |
first | The first sequence. |
second | The second sequence. |
0 if they are equal; less than zero if the first is less than the second; greater than zero if the first is greater than the second.
Compares two sequences.
public static int SequenceCompare<T>(this IEnumerable<T> first, IEnumerable<T> second,
IComparer<T>? comparer)
parameter | description |
---|---|
T | The type of the elements. |
first | The first sequence. |
second | The second sequence. |
comparer | The comparer. |
0 if they are equal; less than zero if the first is less than the second; greater than zero if the first is greater than the second.