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

# Collection

> Extension methods for Collection from System.Runtime

## Definition

**Assembly:** System.Runtime.dll

**Namespace:** System.Collections.ObjectModel

## Syntax

```csharp theme={"dark"}
System.Collections.ObjectModel.Collection<T>
```

## Summary

This type is defined in System.Runtime.

## Remarks

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

## Methods

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

<Note>Extension method from `System.Collections.ObjectModel.EasyAF_CollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void AddRange<T>(System.Collections.ObjectModel.Collection<T> collection, System.Collections.Generic.IEnumerable<T> items)
```

#### Parameters

| Name         | Type                                           | Description |
| ------------ | ---------------------------------------------- | ----------- |
| `collection` | `System.Collections.ObjectModel.Collection<T>` | -           |
| `items`      | `System.Collections.Generic.IEnumerable<T>`    | -           |

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

<Note>Extension method from `System.Collections.ObjectModel.EasyAF_CollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void InsertRange<T>(System.Collections.ObjectModel.Collection<T> collection, int index, System.Collections.Generic.IEnumerable<T> items)
```

#### Parameters

| Name         | Type                                           | Description |
| ------------ | ---------------------------------------------- | ----------- |
| `collection` | `System.Collections.ObjectModel.Collection<T>` | -           |
| `index`      | `int`                                          | -           |
| `items`      | `System.Collections.Generic.IEnumerable<T>`    | -           |

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

<Note>Extension method from `System.Collections.ObjectModel.EasyAF_CollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void RemoveRange<T>(System.Collections.ObjectModel.Collection<T> collection, int index, int count)
```

#### Parameters

| Name         | Type                                           | Description |
| ------------ | ---------------------------------------------- | ----------- |
| `collection` | `System.Collections.ObjectModel.Collection<T>` | -           |
| `index`      | `int`                                          | -           |
| `count`      | `int`                                          | -           |

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

<Note>Extension method from `System.Collections.ObjectModel.EasyAF_CollectionExtensions`</Note>

#### Syntax

```csharp theme={"dark"}
public static void ReplaceRange<T>(System.Collections.ObjectModel.Collection<T> collection, int index, int count, System.Collections.Generic.IEnumerable<T> items)
```

#### Parameters

| Name         | Type                                           | Description |
| ------------ | ---------------------------------------------- | ----------- |
| `collection` | `System.Collections.ObjectModel.Collection<T>` | -           |
| `index`      | `int`                                          | -           |
| `count`      | `int`                                          | -           |
| `items`      | `System.Collections.Generic.IEnumerable<T>`    | -           |
