Table of Contents

Class ValueReadOnlyCollectionExtensions

Namespace
Silverback.Collections
Assembly
Silverback.Core.dll
public static class ValueReadOnlyCollectionExtensions
Inheritance
ValueReadOnlyCollectionExtensions
Inherited Members

Methods

AsValueReadOnlyCollection<T>(IEnumerable<T>)

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

public static IValueReadOnlyCollection<T> AsValueReadOnlyCollection<T>(this IEnumerable<T> collection)

Parameters

collection IEnumerable<T>

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

Returns

IValueReadOnlyCollection<T>

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

Type Parameters

T

The type of the elements.