ReadOnlyCollection Class  
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides static methods for read-only collections.
public ref class ReadOnlyCollection abstract sealedpublic static class ReadOnlyCollectiontype ReadOnlyCollection = classPublic Class ReadOnlyCollection- Inheritance
- 
				ReadOnlyCollection
Methods
| CreateCollection<T>(ReadOnlySpan<T>) | Creates a new ReadOnlyCollection<T> from the specified span of values. This method (simplifies collection initialization)[https://free.blessedness.top/dotnet/csharp/language-reference/operators/collection-expressions] to create a new ReadOnlyCollection<T> with the specified values. | 
| CreateSet<T>(ReadOnlySpan<T>) | Creates a new ReadOnlySet<T> from the specified span of values. This method (simplifies collection initialization)[https://free.blessedness.top/dotnet/csharp/language-reference/operators/collection-expressions] to create a new ReadOnlySet<T> with the specified values. |