ImmutableArrayExtensions::SequenceEqual<TDerived, TBase> Method (ImmutableArray<TBase>, ImmutableArray<TDerived>, Func<TBase, TBase, Boolean>^)

 

Determines whether two sequences are equal according to an equality comparer.

Namespace:   System.Linq
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public:
generic<typename TDerived, typename TBase>
where TDerived : TBase
[ExtensionAttribute]
static bool SequenceEqual(
	ImmutableArray<TBase> immutableArray,
	ImmutableArray<TDerived> items,
	Func<TBase, TBase, bool>^ predicate
)

Parameters

immutableArray
Type: System.Collections.Immutable::ImmutableArray<TBase>

The array to use for comparison.

items
Type: System.Collections.Immutable::ImmutableArray<TDerived>

The items to use for comparison.

predicate
Type: System::Func<TBase, TBase, Boolean>^

The comparer to use to check for equality.

Return Value

Type: System::Boolean

true to indicate the sequences are equal; otherwise, false.

Type Parameters

TDerived

The type of element in the compared array.

TBase

The type of element contained by the collection.

Return to top
Show: