[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 | Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (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 | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (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.
|