Answers for "how to check if item in a list duplicated c#"

C#
0

c# see if list contains any duplicates

var list = new List<string>();

// Fill the list

if(list.Count != list.Distinct().Count())
{
     // Duplicates exist
}
Posted by: Guest on May-17-2020

Code answers related to "how to check if item in a list duplicated c#"

C# Answers by Framework

Browse Popular Code Answers by Language