I am trying to figure out how to check if a string contains another while ignoring case using .text.contains.
As it stands right now If I do this:
D
Personally I just used:
item.Text.ToLower().Contains("my house is cold")
you could just as well use ToUpper as well.
Caveat: If you are comparing Turkish, or other languages, the ToLower() and ToUpper() also take an option parameter, for "CultureInfo" allowing you to ensure that different languages are handled correctly. You can use an above solution, or you can follow the steps from Microsoft's ToLower Documentation, to add in CultureInfo, to get ToLower context on which language you are about to try to manipulate.
ToLower() with CultureInfo documentation
ToUpper() with CultureInfo documentation