I would like to use the String method IndexOfAny to check if a character exists in a specified string.
Examples I\'ve found online, of using the IndexOfAny method in
That is a suffix for a literal of type System.Char. So
Dim foo As Char = "x"c
Will compile (when Option Strict is set to either On or Off). Without the c
, it would be interpreted as a string. For more information about literal suffixes in VB.NET, take a look at the MSDN page, "Constant and Literal Data Types".