I have the list. i want to return true if any duplicates found.
for example, below is the list
List<string> Listvalues = new List<string> {"E-10-XN-PP" , E-10-XN-MM, E-10-XN-MM}; ==> Found duplicates
List<string> Listvalues = new List<string> {"E-10-XN-PP" , E-10-XN-MM, E-10-XN-NM}; ==> No duplicates found
How to check the duplicates or no duplicates using LINQ or Loop in C#?