Created
June 3, 2016 13:25
-
-
Save ViIvanov/d5c3511e7153aee373496c67249cc3d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before | |
var dictionary1 = new Dictionary<int, string> { | |
{ 1, "One" }, | |
{ 2, "Two" }, | |
}; | |
// After | |
var dictionary2 = new Dictionary<int, string> { | |
[1] = "One", | |
[2] = "Two", | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment