Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #dictionary #unique
ADD COMMENT
Topic
Name
7+6 =