c# switch string ignore case code example
Example: C# how to ignore case
if (val.Equals("astringvalue", StringComparison.InvariantCultureIgnoreCase))
if (val.Equals("astringvalue", StringComparison.InvariantCultureIgnoreCase))