Class HashSetDictionary<TKey, TValue>.ValueSet
Represents a dictionary synchronized set of values associated with a key in a HashSetDictionary<TKey, TValue>.
Inheritance
Implements
Inherited Members
Namespace: Singulink.Collections
Assembly: Singulink.Collections.dll
Syntax
public sealed class HashSetDictionary<TKey, TValue>.ValueSet : HashSetDictionary<TKey, TValue>.ReadOnlyValueSet, IReadOnlySet<TValue>, IReadOnlyCollection<TValue>, IEquatable<HashSetDictionary<TKey, TValue>.ReadOnlyValueSet>, ISet<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable, IReadOnlyCollectionProvider<TValue>
Methods
| Name | Description |
|---|---|
| Add(TValue) | Adds an item to this set. |
| AddRange(IEnumerable<TValue>) | Adds the items of the specified collection to this set. |
| AsReadOnly() | Returns a dictionary synchronized read-only wrapper around this value set. |
| Clear() | Clears all the values in this set and removes the key from the dictionary. |
| EnsureCapacity(int) | Ensures that the value set can hold the specified number of items without growing. |
| ExceptWith(IEnumerable<TValue>) | Removes all items in the specified collection from the current set. |
| IntersectWith(IEnumerable<TValue>) | Modifies the current set to contain only items that are also present in the specified collection. |
| Remove(TValue) | Removes the specified item from the set. |
| SetRange(IEnumerable<TValue>) | Clears the items in this set and adds the items from the specified collection. |
| SymmetricExceptWith(IEnumerable<TValue>) | Modifies the current set to contain only items that are present either in the set or in the specified collection, but not both. |
| TrimExcess() | Sets the capacity of the set to the actual number of items it contains, rounded up to a nearby, implementation-specific value. |
| UnionWith(IEnumerable<TValue>) | Modifies the current set to contain all items that are present in the set, the specified collection, or both. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IReadOnlyCollectionProvider<TValue>.GetReadOnlyCollection() | Returns a read-only collection wrapper for the given collection. |
| ICollection<TValue>.Add(TValue) | Adds an item to this set. |
| ICollection<TValue>.IsReadOnly | Gets a value indicating whether the set is read-only. Always returns false. |