 | BcfReadOnlyArrayListExtensionsAnyTSource Method (BcfReadOnlyArrayListTSource, FuncTSource, Boolean) |
[This is preliminary documentation and is subject to change.]
Gets a value indicating whether any elements are in this collection
that match a given condition.
Namespace:
System.Linq
Assembly:
CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntaxpublic static bool Any<TSource>(
this BcfReadOnlyArrayList<TSource> source,
Func<TSource, bool> predicate
)
<ExtensionAttribute>
Public Shared Function Any(Of TSource) (
source As BcfReadOnlyArrayList(Of TSource),
predicate As Func(Of TSource, Boolean)
) As Boolean
Parameters
- source
- Type: CalculationWorks.BusinessModelBcfReadOnlyArrayListTSource
The source. - predicate
- Type: SystemFuncTSource, Boolean
A function to test each element for a condition.
Type Parameters
- TSource
- The type of the elements of source.
Return Value
Type:
Booleantrue if any elements in the source sequence pass the test in the specified predicate; otherwise,
false.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
BcfReadOnlyArrayListTSource. 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