Collections Collections
Collections Collections
DocFX + Singulink = ♥

Search Results for

    Class CollectionExtensions

    Provides extension methods for collections.

    Inheritance
    object
    CollectionExtensions
    Namespace: Singulink.Collections
    Assembly: Singulink.Collections.dll
    Syntax
    public static class CollectionExtensions

    Methods

    Name Description
    AsSafeEnumerable<TKey, TValue>(ConcurrentDictionary<TKey, TValue>)

    Wraps a ConcurrentDictionary<TKey, TValue> in an IEnumerable<T> that is safe to pass to consumers which may otherwise corrupt or fail when the dictionary is modified concurrently during enumeration.

    ToComparerEquatableArray<T>(IEnumerable<T>, IEqualityComparer<T>?)

    Returns a ComparerEquatableArray<T> containing the specified items that uses the specified comparer, or the default comparer if null is specified.

    ToComparerEquatableArray<T>(ImmutableArray<T>, IEqualityComparer<T>?)

    Returns a ComparerEquatableArray<T> containing the specified items that uses the specified comparer, or the default comparer if null is specified.

    ToComparerEquatableArray<T>(ReadOnlySpan<T>, IEqualityComparer<T>?)

    Returns a ComparerEquatableArray<T> containing the specified items that uses the specified comparer, or the default comparer if null is specified.

    ToComparerEquatableArray<T>(T[], IEqualityComparer<T>?)

    Returns a ComparerEquatableArray<T> containing the specified items that uses the specified comparer, or the default comparer if null is specified.

    ToEquatableArray<T>(IEnumerable<T>)

    Returns an EquatableArray<T> containing the specified items.

    ToEquatableArray<T>(ImmutableArray<T>)

    Returns an EquatableArray<T> containing the specified items.

    ToEquatableArray<T>(ReadOnlySpan<T>)

    Returns an EquatableArray<T> containing the specified items.

    ToEquatableArray<T>(T[])

    Returns an EquatableArray<T> containing the specified items.

    © Singulink. All rights reserved.