Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    MultiValueSortedDictionary<TKey, TValue>.Enumerator Struct

    Namespace: Stride.Core.Collections
    Assembly: 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.

    | Improve this Doc View Source

    Constructors


    Enumerator(MultiValueSortedDictionary<TKey, TValue>)

    public Enumerator(MultiValueSortedDictionary<TKey, TValue> dictionary)
    Parameters
    Type Name Description
    MultiValueSortedDictionary<TKey, TValue> dictionary
    | Improve this Doc View Source

    Properties


    Current

    public readonly KeyValuePair<TKey, TValue> Current { get; }
    Property Value
    Type Description
    System.Collections.Generic.KeyValuePair<TKey, TValue>
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.


    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation