Answers for "c# check if value in dictionary are unique"

C#
0

c# check if value in dictionary are unique

var dict = new Dictionary<string, int>();

if(dict.Values.Distinct().Count() == dict.Count)
{
  Console.WriteLine("values are distinct");
}
Posted by: Guest on December-26-2020

Code answers related to "c# check if value in dictionary are unique"

C# Answers by Framework

Browse Popular Code Answers by Language