ignore case sensitive in c# code example
Example 1: c# string equals ignore case
string.Equals(val, "astringvalue", StringComparison.OrdinalIgnoreCase)
Example 2: C# how to ignore case
if (val.Equals("astringvalue", StringComparison.InvariantCultureIgnoreCase))