Mono Class Library: System.Uri Overview | Members

System.Uri.HexUnescape Method

Converts a specified escaped hexadecimal representation of a character to the character.

public static char HexUnescape (string pattern, ref int index)

Parameters

pattern
A string containing the hexadecimal representation of a character.
index
A int containing the location in pattern where the hexadecimal representation of a character begins.

Returns

A char containing a character. If the character pointed to by index is a "%" and there are at least two characters following the "%", and the two characters are valid hexadecimal digits, the hexadecimal digits are converted to char. Otherwise, the character at index is returned. Valid hexadecimal digits are: 0-9, a-f, A-F.

On return, the value of index contains the index of the character following the one returned.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionindex < 0, or index >= the number of characters in pattern.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0