EnumerableUtility.AreEqual<T> method (1 of 3)

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.

Return Value

True if the sequences are equal.

See Also


EnumerableUtility.AreEqual<T> method (2 of 3)

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.

Return Value

True if the sequences are equal.

See Also


EnumerableUtility.AreEqual<T> method (3 of 3)

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.

Return Value

True if the sequences are equal.

See Also