Class SwiftDictionary<TKey, TValue>.ValueCollection
- Namespace
- SwiftCollections
- Assembly
- SwiftCollections.dll
Offers a dynamic, read-only collection of all values in the dictionary, supporting enumeration and copy operations.
public sealed class SwiftDictionary<TKey, TValue>.ValueCollection : ICollection<TValue>, ICollection, IReadOnlyCollection<TValue>, IEnumerable<TValue>, IEnumerable
- Inheritance
-
SwiftDictionary<TKey, TValue>.ValueCollection
- Implements
-
ICollection<TValue>IReadOnlyCollection<TValue>IEnumerable<TValue>
- Inherited Members
- Extension Methods
Constructors
ValueCollection(SwiftDictionary<TKey, TValue>)
Initializes a new instance of the ValueCollection class that reflects the values in the specified dictionary.
public ValueCollection(SwiftDictionary<TKey, TValue> dictionary)
Parameters
dictionarySwiftDictionary<TKey, TValue>The dictionary whose values are reflected in the new ValueCollection.
Exceptions
- ArgumentNullException
The dictionary is null.
Properties
Count
public int Count { get; }
Property Value
Methods
CopyTo(TValue[], int)
public void CopyTo(TValue[] array, int arrayIndex)
Parameters
arrayTValue[]arrayIndexint
GetEnumerator()
Returns an enumerator that iterates through the values in the collection.
public SwiftDictionary<TKey, TValue>.ValueCollection.ValueCollectionEnumerator GetEnumerator()
Returns
- SwiftDictionary<TKey, TValue>.ValueCollection.ValueCollectionEnumerator
An enumerator for the values in the collection.