NDepend.API Documentation
ToReadOnlyWrappedCollection<T> Method
NDepend.Helpers Namespace > ExtensionMethodsEnumerable Class : ToReadOnlyWrappedCollection<T> Method
The type parameter of the items in the collection.
A collection object.
Creates a IReadOnlyCollection wrapper collection around collection.
Syntax
[Extension()]
public static IReadOnlyCollection<T> ToReadOnlyWrappedCollection<T>( 
   ICollection<T> collection
)

Parameters

collection
A collection object.

Type Parameters

T
The type parameter of the items in the collection.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsEnumerable Class
ExtensionMethodsEnumerable Members