Table of Contents

Method AreSequencesEqual

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

AreSequencesEqual<T>(IEnumerable<T>, IEnumerable<T>)

Checks whether the sequences are equal.

[Version(1, 3, 0)]
public static bool AreSequencesEqual<T>(IEnumerable<T> s1, IEnumerable<T> s2) where T : IComparable

Parameters

s1 IEnumerable<T>
s2 IEnumerable<T>

Returns

bool

true if the number of elements in the sequences are equal, and all the elements compared item by item are equal (using the CompareTo method), false otherwise.

Type Parameters

T