Table of Contents

Class MultiValueSortedDictionary<TKey, TValue>.ValueCollection

Namespace
Stride.Core.Collections
Assembly
Stride.Core.dll

Represents the collection of values in a KoderHack.MultiValueSortedDictionary<TKey,TValue>. This class cannot be inherited

public sealed class MultiValueSortedDictionary<TKey, TValue>.ValueCollection : ICollection<TValue>, IEnumerable<TValue>, ICollection, IEnumerable
Inheritance
MultiValueSortedDictionary<TKey, TValue>.ValueCollection
Implements
ICollection<TValue>
IEnumerable<TValue>
Extension Methods

Constructors

ValueCollection(MultiValueSortedDictionary<TKey, TValue>)

Initializes a new instance of the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection class that reflects the values in the specified KoderHack.MultiValueSortedDictionary<TKey,TValue>.

public ValueCollection(MultiValueSortedDictionary<TKey, TValue> dictionary)

Parameters

dictionary MultiValueSortedDictionary<TKey, TValue>

The KoderHack.MultiValueSortedDictionary<TKey,TValue> whose values are reflected in the new KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection.

Exceptions

ArgumentNullException

dictionary is null.

Properties

Count

Gets the number of elements contained in the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection.

public int Count { get; }

Property Value

int

The number of elements contained in the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection.

Methods

CopyTo(TValue[], int)

Copies the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection elements to an existing one-dimensional array, starting at the specified array index.

public void CopyTo(TValue[] array, int index)

Parameters

array TValue[]

The one-dimensional array that is the destination of the elements copied from the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection. The array must have zero-based indexing.

index int

The zero-based index in array at which copying begins.

Exceptions

ArgumentNullException

array is null.

ArgumentOutOfRangeException

index is less than 0.

ArgumentException

index is equal to or greater than the length of array. -or- The number of elements in the source KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection is greater than the available space from index to the end of the destination array.

GetEnumerator()

Returns an enumerator that iterates through the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection.

public MultiValueSortedDictionary<TKey, TValue>.ValueCollection.Enumerator GetEnumerator()

Returns

MultiValueSortedDictionary<TKey, TValue>.ValueCollection.Enumerator

A KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection.Enumerator structure for the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection.