Enumerable.sequenceEqual Method

Determines whether two sequences are equal.
 
 
Static This method is static.

Parameters

first

Type: IEnumerable
A sequence to compare with the second.
second

Type: IEnumerable
A sequence to compare with the first.
comparer

Type: IEqualityComparer
A comparer to use to compare elements in the sequence.
Optional: True

Return Value


Type: Boolean
True if the sequences contain the same items in the same order; otherwise, false.