EnumerableExtensions.IndexOf 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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 平台內部使用。