# ISearchList

> A search list represents a collection of search results that is filled.

## Definition

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

```csharp
public interface ISearchList : IList<SearchItem>, ICollection<SearchItem>, IEnumerable<SearchItem>, IEnumerable, IDisposable
```

## Examples

```csharp
public static IEnumerable<SearchItem> YieldResults()
{
    ISearchList results = SearchService.Request("*.cs");
    foreach (var result in results)
        yield return result;
}
```

## Properties

| Property                                                                             | Description                                                                                    |
| ------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
| [context](/engine/6000.7/script-reference/unityeditor/search/isearchlist/context.md) | Any valid search context that is used to track async search requests. It can be null.          |
| [pending](/engine/6000.7/script-reference/unityeditor/search/isearchlist/pending.md) | Indicates if the search request is still running and might return more results asynchronously. |

## Methods

| Method                                                                                       | Description                                                             |
| -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [AddItems](/engine/6000.7/script-reference/unityeditor/search/isearchlist/additems.md)       | Add new items to the search list.                                       |
| [Fetch](/engine/6000.7/script-reference/unityeditor/search/isearchlist/fetch.md)             | Yields search items until the search query is finished.                 |
| [GetRange](/engine/6000.7/script-reference/unityeditor/search/isearchlist/getrange.md)       | Return a subset of items.                                               |
| [InsertRange](/engine/6000.7/script-reference/unityeditor/search/isearchlist/insertrange.md) | Insert new search items in the current list.                            |
| [Select](/engine/6000.7/script-reference/unityeditor/search/isearchlist/select.md)           | Enumerate search items and transform them while they are being fetched. |

## Inheritance

**Inherited Members:**

* [IList\<SearchItem>.IndexOf(SearchItem)](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1.indexof)
* [IList\<SearchItem>.Insert(int, SearchItem)](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1.insert)
* [IList\<SearchItem>.RemoveAt(int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1.removeat)
* [IList\<SearchItem>.Item(int)](https://learn.microsoft.com/dotnet/api/system.int32)
* [ICollection\<SearchItem>.Add(SearchItem)](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1.add)
* [ICollection\<SearchItem>.Clear()](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1.clear)
* [ICollection\<SearchItem>.Contains(SearchItem)](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1.contains)
* [ICollection\<SearchItem>.CopyTo(SearchItem\[\], int)](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1.copyto)
* [ICollection\<SearchItem>.Remove(SearchItem)](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1.remove)
* [ICollection\<SearchItem>.Count()](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1.count)
* [ICollection\<SearchItem>.IsReadOnly()](https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1.isreadonly)
* [IEnumerable\<SearchItem>.GetEnumerator()](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1.getenumerator)
* [IDisposable.Dispose()](https://learn.microsoft.com/dotnet/api/system.idisposable.dispose)
