Table of Contents

Class ValueReadOnlyCollection<T>

Namespace
Silverback.Collections
Assembly
Silverback.Core.dll

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

public sealed class ValueReadOnlyCollection<T> : IValueReadOnlyCollection<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, IEquatable<ValueReadOnlyCollection<T>>

Type Parameters

T

The type of the elements.

Inheritance
ValueReadOnlyCollection<T>
Implements
Inherited Members
Extension Methods

Constructors

ValueReadOnlyCollection(IEnumerable<T>)

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

public ValueReadOnlyCollection(IEnumerable<T> collection)

Parameters

collection IEnumerable<T>

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

Properties

Count

public int Count { get; }

Property Value

int

Methods

Equals(ValueReadOnlyCollection<T>?)

public bool Equals(ValueReadOnlyCollection<T>? other)

Parameters

other ValueReadOnlyCollection<T>

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetEnumerator()

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

GetHashCode()

public override int GetHashCode()

Returns

int