Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dictionary<string, string> persons = new Dictionary<string, string>();
- persons.Add("roger", "12");
- persons.Add("mary", "13");
- foreach (KeyValuePair<string,string> person in persons)
- {
- Console.WriteLine("Name: " + person.Key + ", Age: " + person.Value);
- persons.Add("Xico", "22");
- }
Add Comment
Please, Sign In to add comment