I\'ve seen a few different ways to iterate over a dictionary in C#. Is there a standard way?
simple with linq
Dictionary dict = new Dictionary(); dict.Add(1, "American Ipa"); dict.Add(2, "Weiss"); dict.ToList().ForEach(x => Console.WriteLine($"key: {x.Key} | value: {x.Value}") );