# IndexOf<T, U>(ref FixedList512Bytes<T>, U)

> Finds the index of the first occurrence of a particular value in this list.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule

## IndexOf\<T, U>(FixedList512Bytes\<T>, T)

```csharp
public static int IndexOf<T, U>(this ref FixedList512Bytes<T> container, U value) where T : unmanaged, IEquatable<U>
```

### Parameters

**** (\[FixedList512Bytes\<T>]\(/engine/6000.7/script-reference/unity/collections/fixedlist512bytes1)): The list to search.**** (T): The value to locate.

### Returns

| Type                                                       | Description                                                                           |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the first occurrence of the value. Returns -1 if no occurrence is found. |
