c# list contains caseinsensitive code example
Example: c# check if list contains string case insensitive
List1.Contains(Name, StringComparer.InvariantCultureIgnoreCase);
List1.Contains(Name, StringComparer.InvariantCultureIgnoreCase);