Class ValueReadOnlyCollection<T>
Represents a strongly-typed, read-only collection of elements that implements a value equality.
Implements
IEnumerable<T>
Inherited Members
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
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 |