 | BcfReadOnlyArrayListExtensionsSequenceEqualTDerived, TBase Method (BcfReadOnlyArrayListTBase, BcfReadOnlyArrayListTDerived, FuncTBase, TBase, Boolean) |
Determines whether two sequences are equal according to an equality comparer.
Namespace:
System.Linq
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.2.0
Syntaxpublic static bool SequenceEqual<TDerived, TBase>(
this BcfReadOnlyArrayList<TBase> source,
BcfReadOnlyArrayList<TDerived> items,
Func<TBase, TBase, bool> predicate
)
where TDerived : TBase
<ExtensionAttribute>
Public Shared Function SequenceEqual(Of TDerived As TBase, TBase) (
source As BcfReadOnlyArrayList(Of TBase),
items As BcfReadOnlyArrayList(Of TDerived),
predicate As Func(Of TBase, TBase, Boolean)
) As Boolean
Parameters
- source
- Type: CalculationWorks.BusinessModelBcfReadOnlyArrayListTBase
The readonly array list. - items
- Type: CalculationWorks.BusinessModelBcfReadOnlyArrayListTDerived
The sequence to compare. - predicate
- Type: SystemFuncTBase, TBase, Boolean
A function to test each element for a condition.
Type Parameters
- TDerived
- The type of element in the compared array.
- TBase
- The type of element contained by the collection.
Return Value
Type:
Boolean if the two source sequences are of equal length and their corresponding elements are equal according to the specified
predicate for their type; otherwise,
.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
BcfReadOnlyArrayListTBase. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also