# Select<TResult>(Func<SearchItem, TResult>)

> Enumerate search items and transform them while they are being fetched.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Search](/engine/6000.6/script-reference/unityeditor/search.md)
* **Assembly:** UnityEditor

## Select\<T>(Func\<SearchItem, T>)

```csharp
IEnumerable<TResult> Select<TResult>(Func<SearchItem, TResult> selector)
```

### Parameters

**** (\[Func\<SearchItem, T>]\(https\://learn.microsoft.com/dotnet/api/system.func-1)): Function used to select what gets returned in the new enumerable list.

### Returns

| Type                                                                                               | Description          |
| -------------------------------------------------------------------------------------------------- | -------------------- |
| [IEnumerable\<T>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) | New enumerable list. |
