Method IndexOf
IndexOf<T, U>(NativeList<T>, U)
Finds the index of the first occurrence of a particular value in this list.
Declaration
public static int IndexOf<T, U>(this NativeList<T> list, U value) where T : unmanaged, IEquatable<U>
Parameters
| Type | Name | Description | 
|---|---|---|
| NativeList<T> | list | The list to search.  | 
    
| U | value | The value to locate.  | 
    
Returns
| Type | Description | 
|---|---|
| int | The index of the first occurrence of the value in this list. Returns -1 if no occurrence is found.  | 
    
Type Parameters
| Name | Description | 
|---|---|
| T | The type of elements in the list.  | 
    
| U | The value type.  |