-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_Collections_ArrayExtensions_Any__1
andrewvk edited this page Apr 26, 2016
·
6 revisions
[This is preliminary documentation and is subject to change.]
Checks if any element in array exists.
Namespace: CodeJam.Collections
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static bool Any<T>(
this T[] array
)
VB
<ExtensionAttribute>
Public Shared Function Any(Of T) (
array As T()
) As Boolean
F#
[<ExtensionAttribute>]
static member Any :
array : 'T[] -> bool
- array
- Type: T[]
Array to check.
- T
- Type of array item.
Type: BooleanTrue
, if array is not empty.
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
This method performs fast check instead of creating enumerator