Uri.IsHexEncoding Method (String, Int32)
Determines whether a character in a string is hexadecimal encoded.
Assembly: System (in System.dll)
The string to check.
The location in pattern to check for hexadecimal encoding.
Themethod checks for hexadecimal encoding that follows the pattern "%hexhex" in a string, where "hex" is a digit from 0 to 9 or a letter from A-F (case-insensitive).
The following code example determines whether a character is hexadecimal encoded and, if so, writes the equivalent character to the console.
Available since 1.1