Show / Hide Table of Contents

    Class ValueReadOnlyCollectionExtensions

    Adds the AsValueReadOnlyCollection<T>(IEnumerable<T>) method to the IReadOnlyCollection<T>.

    Inheritance
    object
    ValueReadOnlyCollectionExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Collections
    Assembly: Silverback.Core.dll
    Syntax
    public static class ValueReadOnlyCollectionExtensions

    Methods

    AsValueReadOnlyCollection<T>(IEnumerable<T>)

    Returns an IValueReadOnlyCollection<T> containing the elements copied from the specified IEnumerable<T>.

    Declaration
    public static IValueReadOnlyCollection<T> AsValueReadOnlyCollection<T>(this IEnumerable<T> collection)
    Parameters
    Type Name Description
    IEnumerable<T> collection

    The collection whose elements are copied to the new IValueReadOnlyCollection<T>.

    Returns
    Type Description
    IValueReadOnlyCollection<T>

    An IValueReadOnlyCollection<T> that wraps the IReadOnlyCollection<T>.

    Type Parameters
    Name Description
    T

    The type of the elements.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini