Search Results for

    Show / Hide Table of Contents

    Class ValueReadOnlyCollectionsExtensions

    Extension methods for value readonly collections defined in MoreStructures.Utilities.

    Inheritance
    System.Object
    ValueReadOnlyCollectionsExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: MoreStructures.Utilities
    Assembly: MoreStructures.dll
    Syntax
    public static class ValueReadOnlyCollectionsExtensions

    Methods

    | Improve this Doc View Source

    ToValueReadOnlyCollection<T>(IEnumerable<T>)

    Builds a ValueReadOnlyCollection<T> out of the provided dictionary.

    Declaration
    public static ValueReadOnlyCollection<T> ToValueReadOnlyCollection<T>(this IEnumerable<T> enumerable)
    Parameters
    Type Name Description
    IEnumerable<T> enumerable

    Returns
    Type Description
    ValueReadOnlyCollection<T>

    An instance of ValueReadOnlyCollection<T>, independent from the provided enumerable.

    Type Parameters
    Name Description
    T

    | Improve this Doc View Source

    ToValueReadOnlyDictionary<TKey, TValue>(IDictionary<TKey, TValue>)

    Builds a ValueReadOnlyDictionary<TKey, TValue> out of the provided dictionary.

    Declaration
    public static ValueReadOnlyDictionary<TKey, TValue> ToValueReadOnlyDictionary<TKey, TValue>(this IDictionary<TKey, TValue> dictionary)
    Parameters
    Type Name Description
    IDictionary<TKey, TValue> dictionary

    Returns
    Type Description
    ValueReadOnlyDictionary<TKey, TValue>

    An instance of ValueReadOnlyDictionary<TKey, TValue>, independent from the provided dictionary.

    Type Parameters
    Name Description
    TKey

    TValue

    | Improve this Doc View Source

    ToValueReadOnlyDictionary<TKey, TValue>(IEnumerable<KeyValuePair<TKey, TValue>>)

    Builds a ValueReadOnlyDictionary<TKey, TValue> out of the provided enumerable of entries.

    Declaration
    public static ValueReadOnlyDictionary<TKey, TValue> ToValueReadOnlyDictionary<TKey, TValue>(this IEnumerable<KeyValuePair<TKey, TValue>> entries)
    Parameters
    Type Name Description
    IEnumerable<KeyValuePair<TKey, TValue>> entries

    Returns
    Type Description
    ValueReadOnlyDictionary<TKey, TValue>

    An instance of ValueReadOnlyDictionary<TKey, TValue>, independent from the provided enumerable of entries.

    Type Parameters
    Name Description
    TKey

    TValue

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX