Returns a value indicating whether the specified sequences are equal. Supports one or both sequences being null.
public static bool AreEqual<T>(IEnumerable<T>? first, IEnumerable<T>? second)
parameter | description |
---|---|
first | The first sequence. |
second | The second sequence. |
True
if the sequences are equal.
Returns a value indicating whether the specified sequences are equal using the specified equality comparer. Supports one or both sequences being null.
public static bool AreEqual<T>(IEnumerable<T>? first, IEnumerable<T>? second,
Func<T?, T?, bool>? equals)
parameter | description |
---|---|
first | The first sequence. |
second | The second sequence. |
equals | Returns true if two items are equal. |
True
if the sequences are equal.
Returns a value indicating whether the specified sequences are equal using the specified equality comparer. Supports one or both sequences being null.
public static bool AreEqual<T>(IEnumerable<T>? first, IEnumerable<T>? second,
IEqualityComparer<T>? comparer)
parameter | description |
---|---|
first | The first sequence. |
second | The second sequence. |
comparer | The comparer. |
True
if the sequences are equal.