T
IdeaBlade DevForce 2010 Help Reference
Any<T> Method
See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > EnumerableFns Class : Any<T> Method



items
predicate
Returns true if any of the items in the indexed collection in cache satisfy the given predicate.

Syntax

Visual Basic (Declaration) 
<ExtensionAttribute()>
Public Shared Function Any(Of T)( _
   ByVal items As IEnumerable(Of T), _
   ByVal predicate As Func(Of T,Integer,Boolean) _
) As Boolean
Visual Basic (Usage)Copy Code
Dim items As IEnumerable(Of T)
Dim predicate As Func(Of T,Integer,Boolean)
Dim value As Boolean
 
value = EnumerableFns.Any(Of T)(items, predicate)
C# 
[ExtensionAttribute()]
public static bool Any<T>( 
   IEnumerable<T> items,
   Func<T,int,bool> predicate
)
C++/CLI 
[ExtensionAttribute()]
public:
static bool Anygeneric<typename T>
( 
   IEnumerable<T^>^ items,
   Func<T^,int,bool>^ predicate
) 

Parameters

items
predicate

Type Parameters

T

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.