[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Type Parameters
- K
reference-counting set based on a HashMap implementation that stores keys and a reference counter for
each unique key value. Each time the same key is added, the reference counter increases.
Each time a key is removed, the reference counter decreases.
The following tables list the members exposed by the RefCountedSet<(Of K>) generic type.
Public Methods
Name | Description | |
---|---|---|
![]() | Add | Add a key to the set. Add with a reference count of one if the key didn't exist in the set.
Increase the reference count by one if the key already exists.
Return true if this is the first time the key was encountered, or false if key is already in set.
|
![]() | Equals | (Inherited from Object.) |
![]() | GetEnumerator | Returns an iterator over the entry set. |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | Remove | Removed a key to the set. Removes the key if the reference count is one.
Decreases the reference count by one if the reference count is more then one.
Return true if the reference count was one and the key thus removed, or false if key is stays in set.
|
![]() | ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
![]() | Finalize | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
Public Constructors
Name | Description | |
---|---|---|
![]() | RefCountedSet<(Of K>)New |
Constructor.
|
Public Properties
Name | Description | |
---|---|---|
![]() | Count | Returns the number of values in the collection. |