Snippet: array variable (with initializer)

property value
IDE Visual Studio
Language C#
Title array variable (with initializer)
Shortcut vax
Description array variable declaration (with initializer)
Snippet Types Expansion

Placeholders

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

Code

var items = new T[] { null };