[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Type Parameters

K

Sorted, reference-counting set based on a SortedDictionary 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 SortedRefCountedSet<(Of K>) generic type.

Public Methods

  NameDescription
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.

Equals (Inherited from Object.)
GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
Remove
Remove a key from 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.

ToString (Inherited from Object.)

Protected Methods

  NameDescription
Finalize (Inherited from Object.)
MemberwiseClone (Inherited from Object.)

Public Constructors

  NameDescription
SortedRefCountedSet<(Of K>)New
Constructor.

Public Properties

  NameDescription
MaxValue
Returns the largest key value, or null if the collection is empty.

MinValue
Returns the smallest key value, or null if the collection is empty.