Quote:
i need to get true or false
i getting error on both
I have no idea, why you're getting an error... Your code is working fine. You can test it this way:
Dim result As Boolean = numbers.Contains("on5e")
Console.WriteLine(result)
If you're interested in comparison ignoring case, you can try this:
Dim result As Boolean = numbers.Contains("one", StringComparer.InvariantCultureIgnoreCase)
Console.WriteLine(result)
For further details, please see:
StringComparer | Microsoft Docs[
^]