| 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
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