Snippet: ObservableCollection<T> variable (with initializer)

property value
IDE Visual Studio
Language C#
Title ObservableCollection<T> variable (with initializer)
Shortcut vcx
Description ObservableCollection<T> variable declaration (with initializer)
Snippet Types Expansion
Namespaces System.Collections.ObjectModel

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_collectionIdentifier Identifier name items yes
_genericType Generic type T yes
_value null yes

Code

var items = new ObservableCollection<T>() { null };