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