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



items
predicate
Returns the index of the first item in the sequence matching a condition, or -1 if no match found.

Syntax

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