What's a correct way to declare and initialize a dictionary?

var dict = new Dictionary<string, int> ();Dictionary<string, int> dict = new Dictionary<string, int> ();int[] dict = { 4, 8, 15, 16, 23, 42 };Dictionary<string> dict = new Dictionary<string> ();

Awesome! We can use the full type of the dictionary or var, if we declare and initialize it at the same time.

Sorry! We can use the full type of the dictionary or var, if we declare and initialize it at the same time.