c# find duplicates in list of strings
var list = new List<string>();
// Fill the list
if(list.Count != list.Distinct().Count())
{
// Duplicates exist
}var list = new List<string>();
list.GroupBy(n => n).Any(c => c.Count() > 1);
Also in C#:
- asp.netcore: develop on win10 run on ubuntu
- when do i need to end a sentence with ; in c#
- what is the or symbol in C#
- c# math to radiant
- convert array object to int[] c#
- HashSet C# append
- c# save pdf to folder
- c# repeat string x times
- get random value from list c#
- fahrenheit to celsius c#
- unity clamp rotation
- c# double value with 2 decimal places
- c# generate random int in range
- how to parse a string to an integer c#
- unity get all children
- make a list c#
- c# send email
- how to stream video from vlc in c#
- unity get number of child objects
- how to randomly rotate rigidbody of object in unity
- c# fibonacci sequence
- c# remove last character from string
- unity getcomponent
- hide inherited member c#