For the complete documentation index, see llms.txt. This page is also available as Markdown.

«CaseInComparison» (Задача)

Являются ли следующие способы сравнения строк a и b без учёта регистра эквивалентными:

Console.WriteLine(
  string.Compare(a.ToUpper(), b.ToUpper()));
Console.WriteLine(
  string.Compare(a, b, StringComparison.OrdinalIgnoreCase));

Решение

Last updated