var dict = new Dictionary<string, int>(); if(dict.Values.Distinct().Count() == dict.Count) { Console.WriteLine("values are distinct"); }