Snippet: Dictionary<T> variable (with initializer)

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

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_dictionaryIdentifier Identifier name dic yes
_value null yes
keyType object yes
valueType object yes

Code

var dic = new Dictionary<object, object>() { [0] = null };