I'm trying to get the customers which Company contains currentSearchViewValue.I want the LINQ to be case insensitive. I write the following:
string currentSearchViewValue = searchView.Query;
var currentCustomersSearched = customers.Where(x => x.Company.Contains(currentSearchViewValue, StringComparer.InvariantCultureIgnoreCase)).ToList();
When I build it says that Contains has no overloads that take 2 arguments. I've seen a lot of examples on internet and they are very long or don't work. Is there a way to do what I want in one line?