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