MultiValueSortedDictionary<TKey, TValue>.ValueCollection Class
Namespace: Stride.Core.CollectionsAssembly: Stride.Core.dll
Represents the collection of values in a KoderHack.MultiValueSortedDictionary<TKey,TValue>. This class cannot be inherited
public sealed class ValueCollection : ICollection<TValue>, IEnumerable<TValue>, ICollection, IEnumerable
Name | Description | |
---|---|---|
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>. |
|
Properties | ||
Count | Gets the number of elements contained in the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection. |
|
Methods | ||
CopyTo(TValue[], Int32) | Copies the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection elements to an existing one-dimensional array, starting at the specified array index. |
|
GetEnumerator() | Returns an enumerator that iterates through the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection. |
|
Explicit Interface Implementations | ||
ICollection<TValue>.Add(TValue) | ||
ICollection<TValue>.Clear() | ||
ICollection<TValue>.Contains(TValue) | ||
ICollection<TValue>.IsReadOnly | Gets a value indicating whether the KoderHack.MultiValueSortedDictionary.ValueCollection is read-only. |
|
ICollection<TValue>.Remove(TValue) | ||
IEnumerable<TValue>.GetEnumerator() | ||
ICollection.CopyTo(Array, Int32) | ||
ICollection.IsSynchronized | Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe). |
|
ICollection.SyncRoot | Gets an object that can be used to synchronize access to the System.Collections.ICollection. |
|
IEnumerable.GetEnumerator() |
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
Type | Name | Description |
---|---|---|
MultiValueSortedDictionary<TKey, TValue> | dictionary | The KoderHack.MultiValueSortedDictionary<TKey,TValue> whose values are reflected in the new KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection. |
Exceptions
Type | Condition |
---|---|
System.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
Type | Description |
---|---|
System.Int32 | The number of elements contained in the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection. |
Methods
CopyTo(TValue[], Int32)
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
Type | Name | Description |
---|---|---|
TValue[] | array | 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. |
System.Int32 | index | The zero-based index in array at which copying begins. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | array is null. |
System.ArgumentOutOfRangeException | index is less than 0. |
System.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
Type | Description |
---|---|
MultiValueSortedDictionary.ValueCollection.Enumerator<> | A KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection.Enumerator structure for the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection. |
Explicit Interface Implementations
ICollection<TValue>.Add(TValue)
void ICollection<TValue>.Add(TValue item)
Parameters
Type | Name | Description |
---|---|---|
TValue | item |
ICollection<TValue>.Clear()
void ICollection<TValue>.Clear()
ICollection<TValue>.Contains(TValue)
bool ICollection<TValue>.Contains(TValue item)
Parameters
Type | Name | Description |
---|---|---|
TValue | item |
Returns
Type | Description |
---|---|
System.Boolean |
ICollection<TValue>.IsReadOnly
Gets a value indicating whether the KoderHack.MultiValueSortedDictionary.ValueCollection is read-only.
bool ICollection<TValue>.IsReadOnly { get; }
Returns
Type | Description |
---|---|
System.Boolean | true if the KoderHack.MultiValueSortedDictionary.ValueCollection is read-only; otherwise false. |
ICollection<TValue>.Remove(TValue)
bool ICollection<TValue>.Remove(TValue item)
Parameters
Type | Name | Description |
---|---|---|
TValue | item |
Returns
Type | Description |
---|---|
System.Boolean |
IEnumerable<TValue>.GetEnumerator()
IEnumerator<TValue> IEnumerable<TValue>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<TValue> |
ICollection.CopyTo(Array, Int32)
void ICollection.CopyTo(Array array, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Array | array | |
System.Int32 | index |
ICollection.IsSynchronized
Gets a value indicating whether access to the System.Collections.ICollection is synchronized (thread safe).
bool ICollection.IsSynchronized { get; }
Returns
Type | Description |
---|---|
System.Boolean | true if access to the System.Collections.ICollection is synchronized (thread safe); otherwise, false. |
ICollection.SyncRoot
Gets an object that can be used to synchronize access to the System.Collections.ICollection.
object ICollection.SyncRoot { get; }
Returns
Type | Description |
---|---|
System.Object | An object that can be used to synchronize access to the System.Collections.ICollection. |
IEnumerable.GetEnumerator()
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |