    

 ## On this page

  

 

 # Class InheritableList&lt;T\\&gt;

 Last update: 16.07.2025 

Namespace: [VM.Collections](VM.Collections.md)  
Assembly: VM.dll

```csharp
public abstract class InheritableList<T> : List<T>

```

#### Type Parameters

`T`

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [List&lt;T&gt;](https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1) ← [InheritableList&lt;T&gt;](VM.Collections.InheritableList-1.md)

## Constructors

### InheritableList()

```csharp
public InheritableList()

```

### InheritableList(int)

```csharp
public InheritableList(int capacity)

```

#### Parameters

`capacity` [int](https://learn.microsoft.com/dotnet/api/system.int32)

### InheritableList(IEnumerable&lt;T&gt;)

```csharp
public InheritableList(IEnumerable<T> collection)

```

#### Parameters

`collection` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;T&gt;

## Properties

### this\[int\]

```csharp
public T this[int index] { get; set; }

```

#### Property Value

T

## Methods

### Add(T)

```csharp
public void Add(T item)

```

#### Parameters

`item` T

### AddRange(IEnumerable&lt;T&gt;)

```csharp
public void AddRange(IEnumerable<T> collection)

```

#### Parameters

`collection` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;T&gt;

### Clear()

```csharp
public void Clear()

```

### ClearItems()

```csharp
protected virtual void ClearItems()

```

### Insert(int, T)

```csharp
public void Insert(int index, T item)

```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

`item` T

### InsertItem(int, T)

```csharp
protected virtual void InsertItem(int index, T item)

```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

`item` T

### InsertRange(int, IEnumerable&lt;T&gt;)

```csharp
public void InsertRange(int index, IEnumerable<T> collection)

```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

`collection` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)&lt;T&gt;

### Remove(T)

```csharp
public bool Remove(T item)

```

#### Parameters

`item` T

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### RemoveAll(Predicate&lt;T&gt;)

```csharp
public int RemoveAll(Predicate<T> match)

```

#### Parameters

`match` [Predicate](https://learn.microsoft.com/dotnet/api/system.predicate-1)&lt;T&gt;

#### Returns

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### RemoveAt(int)

```csharp
public void RemoveAt(int index)

```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

### RemoveItem(int)

```csharp
protected virtual void RemoveItem(int index)

```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

### RemoveRange(int, int)

```csharp
public void RemoveRange(int index, int count)

```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

`count` [int](https://learn.microsoft.com/dotnet/api/system.int32)

### SetItem(int, T)

```csharp
protected virtual void SetItem(int index, T item)

```

#### Parameters

`index` [int](https://learn.microsoft.com/dotnet/api/system.int32)

`item` T