EnumerableUtility.SequenceCompare<T> method (1 of 2)

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.

Return Value

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.

See Also


EnumerableUtility.SequenceCompare<T> method (2 of 2)

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.

Return Value

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.

See Also