Table of Contents

Class OrderedDict<TKey, TValue>.ValueCollection

Namespace
OptunaSharp.Collections
Assembly
OptunaSharp.dll

Represents the collection of values in a OrderedDict<TKey, TValue>.

public sealed class OrderedDict<TKey, TValue>.ValueCollection : IList<TValue>, ICollection<TValue>, IReadOnlyList<TValue>, IReadOnlyCollection<TValue>, IEnumerable<TValue>, IList, ICollection, IEnumerable
Inheritance
OrderedDict<TKey, TValue>.ValueCollection
Implements
IList<TValue>
ICollection<TValue>
IEnumerable<TValue>
Inherited Members

Properties

Count

Gets the number of elements contained in the ICollection<T>.

public int Count { get; }

Property Value

int

The number of elements contained in the ICollection<T>.

Methods

CopyTo(TValue[], int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

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

Parameters

array TValue[]

The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.

arrayIndex int

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

Exceptions

ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is less than 0.

ArgumentException

The number of elements in the source ICollection<T> is greater than the available space from arrayIndex to the end of the destination array.

GetEnumerator()

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

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

Returns

OrderedDict<TKey, TValue>.ValueCollection.Enumerator

A OrderedDict<TKey, TValue>.ValueCollection.Enumerator for the OrderedDict<TKey, TValue>.ValueCollection.