# GenericEnumerable<T>.GetItem

Kind: Delegate · Namespace: Sansar.Utility · Assembly: Sansar.Script.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-delegate" data-pagefind-filter="kind:Delegate">Delegate</span>
<span data-pagefind-filter="namespace:Sansar.Utility">Namespace <a href="/scripting/api/sansar.utility"><code>Sansar.Utility</code></a></span>
</div>

<span id="T:Sansar.Utility.GenericEnumerable`1.GetItem"></span>

Delegate which returns an item by index.

```csharp
public delegate T GenericEnumerable<T>.GetItem(
    uint index
) where T : class
```

| Parameter | Type | Description |
|---|---|---|
| `index` | [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The index of the item to retrieve. Items in the range \[0..[`GenericEnumerable<T>.Count`](/scripting/api/sansar.utility/genericenumerable-1#count)) exist, though they may be null. |

**Returns:** T — The item or null.

## Remarks

Indexing outside the bounds of the collection may return null or thow an exception.



<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>