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

# Class InheritableDictionary<TKey, TValue>

Namespace: [VM.Collections](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Collections)\
Assembly: VM.dll

```csharp theme={null}
public abstract class InheritableDictionary<TKey, TValue> : Dictionary<TKey, TValue>
```

#### Type Parameters

`TKey`

`TValue`

#### Inheritance

object ←
Dictionary\<TKey, TValue> ←
[InheritableDictionary\<TKey, TValue>](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Collections.InheritableDictionary-2.md)

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### InheritableDictionary()

```csharp theme={null}
public InheritableDictionary()
```

### InheritableDictionary(int)

```csharp theme={null}
public InheritableDictionary(int capacity)
```

#### Parameters

`capacity` int

### InheritableDictionary(IEqualityComparer\<TKey>)

```csharp theme={null}
public InheritableDictionary(IEqualityComparer<TKey> comparer)
```

#### Parameters

`comparer` IEqualityComparer\<TKey>

### InheritableDictionary(int, IEqualityComparer\<TKey>)

```csharp theme={null}
public InheritableDictionary(int capacity, IEqualityComparer<TKey> comparer)
```

#### Parameters

`capacity` int

`comparer` IEqualityComparer\<TKey>

### InheritableDictionary(IDictionary\<TKey, TValue>)

```csharp theme={null}
public InheritableDictionary(IDictionary<TKey, TValue> dictionary)
```

#### Parameters

`dictionary` IDictionary\<TKey, TValue>

### InheritableDictionary(IDictionary\<TKey, TValue>, IEqualityComparer\<TKey>)

```csharp theme={null}
public InheritableDictionary(IDictionary<TKey, TValue> dictionary, IEqualityComparer<TKey> comparer)
```

#### Parameters

`dictionary` IDictionary\<TKey, TValue>

`comparer` IEqualityComparer\<TKey>

### InheritableDictionary(SerializationInfo, StreamingContext)

```csharp theme={null}
protected InheritableDictionary(SerializationInfo serializationInfo, StreamingContext streamingContext)
```

#### Parameters

`serializationInfo` SerializationInfo

`streamingContext` StreamingContext

## Properties

### this\[TKey]

```csharp theme={null}
public TValue this[TKey key] { get; set; }
```

#### Property Value

TValue

## Methods

### Add(TKey, TValue)

```csharp theme={null}
public void Add(TKey key, TValue value)
```

#### Parameters

`key` TKey

`value` TValue

### AddItem(TKey, TValue)

```csharp theme={null}
protected virtual void AddItem(TKey key, TValue value)
```

#### Parameters

`key` TKey

`value` TValue

### Clear()

```csharp theme={null}
public void Clear()
```

### ClearItems()

```csharp theme={null}
protected virtual void ClearItems()
```

### Remove(TKey)

```csharp theme={null}
public bool Remove(TKey key)
```

#### Parameters

`key` TKey

#### Returns

bool

### RemoveItem(TKey)

```csharp theme={null}
protected virtual bool RemoveItem(TKey key)
```

#### Parameters

`key` TKey

#### Returns

bool
