Property | Value |
---|---|
Id | RR0191 |
Title | Use C# 6.0 dictionary initializer |
Syntax | collection initializer |
Enabled by Default | ✓ |
var dic = new Dictionary<int, string>() { { 0, "0" } };
var dic = new Dictionary<int, string>() { [0] = "0" };
(Generated with DotMarkdown)