An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
You can try something like this to see if a list of string has duplicates
public static bool ListHasDuplicates(List<string> lst)
{
bool result = false;
var distinctList = lst.Distinct().ToList();
result = (lst.Count() == distinctList.Count());
return !result;
}