Snippet: ReadOnlyCollection<T> variable

property value
IDE Visual Studio
Language C#
Title ReadOnlyCollection<T> variable
Shortcut vc
Description ReadOnlyCollection<T> variable declaration
Snippet Types Expansion
Namespaces System.Collections.ObjectModel

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_argumentList Constructor arguments arguments yes
_collectionIdentifier Identifier name items yes
_genericType Generic type T yes

Code

var items = new ReadOnlyCollection<T>(arguments);