[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Type Parameters
- K
- V
Reference-counting map based on a HashMap implementation that stores as a value a pair of value and reference counter.
The class provides a reference method that takes a key
and increments the reference count for the key. It also provides a de-reference method that takes a key and
decrements the reference count for the key, and removes the key if the reference count reached zero.
Null values are not allowed as keys.
The following tables list the members exposed by the RefCountedMap<(Of K, V>) generic type.
Public Methods
Name | Description | |
---|---|---|
![]() | Dereference | Decreases the reference count for a given key by one. Returns true if the reference count reaches zero.
Removes the key from the collection when the reference count reaches zero.
Throw an ArgumentException if the key is not found.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | Reference | Increase the reference count for a given key by one.
Throws an ArgumentException if the key was not found.
|
![]() | ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
![]() | Finalize | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
Public Constructors
Name | Description | |
---|---|---|
![]() | RefCountedMap<(Of K, V>)New |
Constructor.
|
Public Properties
Name | Description | |
---|---|---|
![]() | Item |
Gets or sets the !:V with the specified key.
|