if (haystack.IndexOf(needle, StringComparison.OrdinalIgnoreCase) >= 0) { // Found }
Programming Tips - C#: case-insensitive strstr()
Date: 2022jan11
Language: C#
Q. C#: case-insensitive strstr()
A. Use IndexOf with OrdinalIgnoreCase