I need to compare strings for a search mechanism on a web site. I use C#. I tried two ways:
consultants.Where(x => x.Description.ToLower().Contains(v
Use
String.Equals(c, vm, StringComparison.OrdinalIgnoreCase)
or
c.IndexOf(vm, StringComparison.OrdinalIgnoreCase)
Ordinal means Unicode, byte-per-byte, culture-independent comparison.
Ordinal