IdeaBlade.Core Assembly > IdeaBlade.Core Namespace > EnumerableFns Class : IndexOf<T> Method |
'Declaration
<ExtensionAttribute()> Public Shared Function IndexOf(Of T)( _ ByVal items As IEnumerable(Of T), _ ByVal predicate As Func(Of T,Boolean) _ ) As Integer
'Usage
Dim items As IEnumerable(Of T) Dim predicate As Func(Of T,Boolean) Dim value As Integer value = EnumerableFns.IndexOf(Of T)(items, predicate)
[Extension()] public static int IndexOf<T>( IEnumerable<T> items, Func<T,bool> predicate )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2