> ## 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 InheritableHashSet<T>

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

```csharp theme={null}
public abstract class InheritableHashSet<T> : HashSet<T>
```

#### Type Parameters

`T`

#### Inheritance

object ←
HashSet\<T> ←
[InheritableHashSet\<T>](https://developer.synopsys.com/docs/motion/motion-standalone-postprocessor-c-sharp-library/lib/VM.Collections.InheritableHashSet-1.md)

## Constructors

### InheritableHashSet()

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

### InheritableHashSet(IEnumerable\<T>)

```csharp theme={null}
public InheritableHashSet(IEnumerable<T> collection)
```

#### Parameters

`collection` IEnumerable\<T>

### InheritableHashSet(IEqualityComparer\<T>)

```csharp theme={null}
public InheritableHashSet(IEqualityComparer<T> comparer)
```

#### Parameters

`comparer` IEqualityComparer\<T>

### InheritableHashSet(IEnumerable\<T>, IEqualityComparer\<T>)

```csharp theme={null}
public InheritableHashSet(IEnumerable<T> collection, IEqualityComparer<T> comparer)
```

#### Parameters

`collection` IEnumerable\<T>

`comparer` IEqualityComparer\<T>

### InheritableHashSet(SerializationInfo, StreamingContext)

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

#### Parameters

`serializationInfo` SerializationInfo

`streamingContext` StreamingContext

## Methods

### Add(T)

```csharp theme={null}
public bool Add(T item)
```

#### Parameters

`item` T

#### Returns

bool

### AddItem(T)

```csharp theme={null}
protected virtual bool AddItem(T item)
```

#### Parameters

`item` T

#### Returns

bool

### Clear()

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

### ClearItems()

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

### Remove(T)

```csharp theme={null}
public bool Remove(T item)
```

#### Parameters

`item` T

#### Returns

bool

### RemoveItem(T)

```csharp theme={null}
protected virtual bool RemoveItem(T item)
```

#### Parameters

`item` T

#### Returns

bool
