Hi,

I have a string which user writes in app. Now I want to compare this string with items in List of strings, but without case-sensitive.

This is what I have so far:

Code:
  Dim ListToCheck As String() = {"London", "Paris", "Amsterdam"}

  Dim MyString = "John is currently at a meeting in london."

  Dim b As Boolean = ListToCheck.Any(Function(s) MyString.Contains(s))

                If b = True Then

                    MsgBox("string contains an item from List")
                Else

                    MsgBox("string doesn't contain an item from List")

                End If
This returns correct result, but case-sensitive. I know that "StringComparer.CurrentCultureIgnoreCase" does that thing, but can I include It into LINQ, and how ?