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>IReadOnlyList<TValue>IReadOnlyCollection<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
arrayTValue[]The one-dimensional Array that is the destination of the elements copied from ICollection<T>. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in
arrayat which copying begins.
Exceptions
- ArgumentNullException
arrayis null.- ArgumentOutOfRangeException
arrayIndexis less than 0.- ArgumentException
The number of elements in the source ICollection<T> is greater than the available space from
arrayIndexto the end of the destinationarray.
GetEnumerator()
Returns an enumerator that iterates through the OrderedDict<TKey, TValue>.ValueCollection.
public OrderedDict<TKey, TValue>.ValueCollection.Enumerator GetEnumerator()