Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# see if list contains any duplicates

var list = new List<string>();

// Fill the list

if(list.Count != list.Distinct().Count())
{
     // Duplicates exist
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #duplicates
ADD COMMENT
Topic
Name
4+7 =