C Sharp (C#) - Strings and StringBuilder
Which of the following is the correct syntax to compare two strings
a and b ignoring case in C#?a and b ignoring case in C#?string.Equals with StringComparison.OrdinalIgnoreCase compares strings ignoring case.a == b.ToLower() compares different types, a.Equals(b) is case-sensitive, and string.Compare returns int, not bool.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions