Class ValueReadOnlyCollectionExtensions
Adds the AsValueReadOnlyCollection<T>(IEnumerable<T>) method to the IReadOnlyCollection<T>.
Inherited Members
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. |