Set

Description

sealed class Tinman.Core.Collections.Set<T>

Derived from

BagBase<T> abstract

An implementation of the IBag interface that uses a hashtable for storing the set elements.

Public / Constructors

Set

3 overloads


public constructor Set1 → (1)

capacity opt : int32 = 12

[>=0]
The initial capacity of the dictionary, in key/value pairs.

Creates a new instance of Set.

The equality delegate is SystemUtil.EqualsDefault.
The hash code delegate is SystemUtil.HashCodeDefault.


public constructor Set2 → (2)

equals in : EqualsDelegate<T>

The equality delegate.

capacity opt : int32 = 12

[>=0]
The initial capacity of the dictionary, in key/value pairs.

Creates a new instance of Set.

The hash code delegate is SystemUtil.HashCodeDefault.


public constructor Set3 → (3)

equals in : EqualsDelegate<T>

The equality delegate.

hashCode in : HashCodeDelegate<T>

Optional hash code delegate.

capacity opt : int32 = 12

[>=0]
The initial capacity of the dictionary, in key/value pairs.

Creates a new instance of Set.

Public / Methods

Clear​Dirty


public method ClearDirty → ()

Removes all elements from this collection, without setting the element values to their defaults.