MultiValueSortedDictionary<TKey, TValue>.Enumerator Struct
Namespace: Stride.Core.CollectionsAssembly: Stride.Core.dll
Enumerates the elements of a KoderHack.MultiValueSortedDictionary<TKey,TValue>.
public struct Enumerator : IEnumerator<KeyValuePair<TKey, TValue>>, IDisposable, IDictionaryEnumerator, IEnumerator
Name | Description | |
---|---|---|
Constructors | ||
Enumerator(MultiValueSortedDictionary<TKey, TValue>) | ||
Properties | ||
Current | ||
Methods | ||
Dispose() | Releases all resources used by the KoderHack.MultiValueSortedDictionary<TKey,TValue>.Enumerator. |
|
MoveNext() | Advances the enumerator to the next element of the KoderHack.MultiValueSortedDictionary<TKey,TValue>. |
|
Explicit Interface Implementations | ||
IDictionaryEnumerator.Entry | Gets both the key and the value of the current dictionary entry. |
|
IDictionaryEnumerator.Key | Gets the key of the current dictionary entry. |
|
IDictionaryEnumerator.Value | Gets the value of the current dictionary entry. |
|
IEnumerator.Current | Gets the element at the current position of the enumerator. |
|
IEnumerator.Reset() | Sets the enumerator to its initial position, which is before the first element in the collection. |
Constructors
Enumerator(MultiValueSortedDictionary<TKey, TValue>)
public Enumerator(MultiValueSortedDictionary<TKey, TValue> dictionary)
Parameters
Type | Name | Description |
---|---|---|
MultiValueSortedDictionary<TKey, TValue> | dictionary |
Properties
Current
public readonly KeyValuePair<TKey, TValue> Current { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.KeyValuePair<TKey, TValue> |
Methods
Dispose()
Releases all resources used by the KoderHack.MultiValueSortedDictionary<TKey,TValue>.Enumerator.
public void Dispose()
MoveNext()
Advances the enumerator to the next element of the KoderHack.MultiValueSortedDictionary<TKey,TValue>.
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean | true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The collection was modified after the enumerator was created. |
Explicit Interface Implementations
IDictionaryEnumerator.Entry
Gets both the key and the value of the current dictionary entry.
readonly DictionaryEntry IDictionaryEnumerator.Entry { get; }
Returns
Type | Description |
---|---|
System.Collections.DictionaryEntry | A System.Collections.DictionaryEntry containing both the key and the value of the current dictionary entry. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The System.Collections.IDictionaryEnumerator is positioned before the first entry of the dictionary or after the last entry. |
IDictionaryEnumerator.Key
Gets the key of the current dictionary entry.
readonly object IDictionaryEnumerator.Key { get; }
Returns
Type | Description |
---|---|
System.Object | The key of the current element of the enumeration. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The System.Collections.IDictionaryEnumerator is positioned before the first entry of the dictionary or after the last entry. |
IDictionaryEnumerator.Value
Gets the value of the current dictionary entry.
readonly object IDictionaryEnumerator.Value { get; }
Returns
Type | Description |
---|---|
System.Object | The value of the current element of the enumeration. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The System.Collections.IDictionaryEnumerator is positioned before the first entry of the dictionary or after the last entry. |
IEnumerator.Current
Gets the element at the current position of the enumerator.
readonly object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
System.Object | The element in the KoderHack.MultiValueSortedDictionary<TKey,TValue>.ValueCollection at the current position of the enumerator. |
IEnumerator.Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
void IEnumerator.Reset()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The collection was modified after the enumerator was created. |