I’m trying to use the ignore case option for Contains, and I get this error:
CS1501 No overload for method 'Contains' takes 2 arguments
This is the code line:
item.buildMach.Contains("co.net", StringComparison.CurrentCultureIgnoreCase)
Hovering over Contains, intellisense does say it has 2 overloads, and it looks like it knows it has this second arg.
I’m trying to do what Mathieu Renda has in his solution for this: contains – ignore case
What do I need to do to fix this error and use the ignore case?
This project has target framework of .net framework 4.7.2.