IndexOfAsync Method
IndexOfAsync(T)
Returns the zero-based index of the first occurrence of a specific item in this list.
Declaration
Task<int> IndexOfAsync(T item)
Parameters
T | item | element to search for |
Returns
Task<int> | the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element |