Snippet: List<T> variable (with initializer)

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

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 List<T>() { null };