EnumerableExtensions.IndexOf 方法

定義

多載

IndexOf<T>(IEnumerable<T>, Func<T,Boolean>)

供 Xamarin.Forms 平台內部使用。

IndexOf<T>(IEnumerable<T>, T)

供 Xamarin.Forms 平台內部使用。

IndexOf<T>(IEnumerable<T>, Func<T,Boolean>)

供 Xamarin.Forms 平台內部使用。

public static int IndexOf<T> (this System.Collections.Generic.IEnumerable<T> enumerable, Func<T,bool> predicate);
static member IndexOf : seq<'T> * Func<'T, bool> -> int

類型參數

T

供 Xamarin.Forms 平台內部使用。

參數

enumerable
System.Collections.Generic.IEnumerable<T>

供 Xamarin.Forms 平台內部使用。

predicate
System.Func<T,System.Boolean>

供 Xamarin.Forms 平台內部使用。

傳回

System.Int32

供 Xamarin.Forms 平台內部使用。

適用於

IndexOf<T>(IEnumerable<T>, T)

供 Xamarin.Forms 平台內部使用。

public static int IndexOf<T> (this System.Collections.Generic.IEnumerable<T> enumerable, T item);
static member IndexOf : seq<'T> * 'T -> int

類型參數

T

供 Xamarin.Forms 平台內部使用。

參數

enumerable
System.Collections.Generic.IEnumerable<T>

供 Xamarin.Forms 平台內部使用。

item
T

供 Xamarin.Forms 平台內部使用。

傳回

System.Int32

供 Xamarin.Forms 平台內部使用。

適用於