Show / Hide Table of Contents

    Class ValueReadOnlyCollection<T>

    Represents a strongly-typed, read-only collection of elements that implements a value equality.

    Inheritance
    object
    ValueReadOnlyCollection<T>
    Implements
    IValueReadOnlyCollection<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    IEquatable<ValueReadOnlyCollection<T>>
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Collections
    Assembly: Silverback.Core.dll
    Syntax
    public sealed class ValueReadOnlyCollection<T> : IValueReadOnlyCollection<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, IEquatable<ValueReadOnlyCollection<T>>
    Type Parameters
    Name Description
    T

    The type of the elements.

    Constructors

    ValueReadOnlyCollection(IEnumerable<T>)

    Initializes a new instance of the ValueReadOnlyCollection<T> class.

    Declaration
    public ValueReadOnlyCollection(IEnumerable<T> collection)
    Parameters
    Type Name Description
    IEnumerable<T> collection

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

    Properties

    Count

    Represents a strongly-typed, read-only collection of elements that implements a value equality.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Methods

    Equals(ValueReadOnlyCollection<T>?)

    Represents a strongly-typed, read-only collection of elements that implements a value equality.

    Declaration
    public bool Equals(ValueReadOnlyCollection<T>? other)
    Parameters
    Type Name Description
    ValueReadOnlyCollection<T> other
    Returns
    Type Description
    bool

    Equals(object?)

    Represents a strongly-typed, read-only collection of elements that implements a value equality.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetEnumerator()

    Represents a strongly-typed, read-only collection of elements that implements a value equality.

    Declaration
    public IEnumerator<T> GetEnumerator()
    Returns
    Type Description
    IEnumerator<T>

    GetHashCode()

    Represents a strongly-typed, read-only collection of elements that implements a value equality.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    Implements

    IValueReadOnlyCollection<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    IEquatable<T>

    Extension Methods

    ValueReadOnlyCollectionExtensions.AsValueReadOnlyCollection<T>(IEnumerable<T>)
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini