Advertisement
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 DictinariesWithLists
- {
- class DictinariesWithLists
- {
- static void Main()
- {
- Dictionary<string, List<int>> dict = new Dictionary<string, List<int>>();
- dict["Jack Johnson"] = new List<int>() { 5, 5, 5, 6 };
- dict["Micheal Bay"] = new List<int>() { 6, 6, 6, };
- dict["John Atansov"] = new List<int> { 4, 6, 6, 6 };
- foreach(var d in dict)
- {
- Console.WriteLine("{0} = {1}",d.Key,string.Join(", ",d.Value));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement