Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Dictionary
- {
- class Dictionary
- {
- static void Main()
- {
- var phonebook = new Dictionary<string, string>();
- {
- phonebook["Ned"] = "0896727296";
- phonebook["Pesho"] = "12345600";
- phonebook["Vanya"] = "088554422";
- }
- phonebook.Add("Ivan", "458964");
- foreach (var item in phonebook)
- {
- Console.WriteLine("{0} - {1}", item.Key, item.Value);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment