> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# IEnumerable

> Extension methods for IEnumerable from System.Runtime

## Definition

**Assembly:** System.Runtime.dll

**Namespace:** System.Collections.Generic

## Syntax

```csharp theme={"dark"}
System.Collections.Generic.IEnumerable<T>
```

## Summary

This type is defined in System.Runtime.

## Remarks

See [Microsoft documentation](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable\{t}) for more information about the rest of the API.

## Methods

### <Icon icon="puzzle-piece" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> Traverse <Badge color="green">Extension</Badge>

<Note>Extension method from `CloudNimble.BlazorEssentials.Extensions.ListExtensions`</Note>

Return item and all children recursively.

#### Syntax

```csharp theme={"dark"}
public static System.Collections.Generic.IEnumerable<T> Traverse<T>(System.Collections.Generic.IEnumerable<T> items, System.Func<T, System.Collections.Generic.IEnumerable<T>> childSelector)
```

#### Parameters

| Name            | Type                                                        | Description |
| --------------- | ----------------------------------------------------------- | ----------- |
| `items`         | `System.Collections.Generic.IEnumerable<T>`                 | -           |
| `childSelector` | `System.Func<T, System.Collections.Generic.IEnumerable<T>>` | -           |

#### Returns

Type: `System.Collections.Generic.IEnumerable<T>`

#### Type Parameters

* `T` -

#### Remarks

[https://stackoverflow.com/a/32655815/403765](https://stackoverflow.com/a/32655815/403765)
