Answers for "c# ignore case compare"

C#
0

c# case insensitive compare

string str1 = null;
string str2 = "london";

str1?.Equals(str2, StringComparison.CurrentCultureIgnoreCase); // true
Posted by: Guest on May-24-2021
0

C# how to ignore case

if (val.Equals("astringvalue", StringComparison.InvariantCultureIgnoreCase))
Posted by: Guest on February-14-2021

C# Answers by Framework

Browse Popular Code Answers by Language