Here is my request:
m_SelectedHandler = m_ListOfHandlers.SingleOrDefault(h => h.CountryNames.Contains(country.ToLower());
countryis the string and argument of the method containing the above purpose. CountryNames- a list of lines. How can I call ToLowerfor each of the lines in CountryNamesto get valid matches for this query. Is there a better way to make case insensitive using LINQ?
source
share