Created
December 1, 2015 10:10
-
-
Save vereperrot/cd50ed361e9c2db7ec79 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var dictionary = new Dictionary<string, int>() | |
{ | |
{"1", 1}, {"2", 2}, {"3", 3} | |
}; | |
string[] keyArray = new string[dictionary.Keys.Count]; | |
dictionary.Keys.CopyTo(keyArray, 0); | |
foreach (var s in keyArray) | |
{ | |
dictionary[s] = 1; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment