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>.ValueCollection Class

    Namespace: Stride.Core.Collections
    Assembly: Stride.Core.dll

    Represents the collection of values in a KoderHack.MultiValueSortedDictionary<TKey,TValue>. This class cannot be inherited

    System.Object → MultiValueSortedDictionary<TKey, TValue>.ValueCollection
    Derived from MultiValueSortedDictionary<TKey, TValue>.ValueCollection:

    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()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    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

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    ArrayExtensions.ComputeHash<T>(ICollection<T>, IEqualityComparer<T>)
    EnumerableExtensions.IsNullOrEmpty(IEnumerable)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.IndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.LastIndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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