Converts an int representing a nibble to a hex digit character to a given value.

Namespace: CardWerk.SmartCard.Util
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Shared Function ToDigit( _ 
ByVal nDigit As Integer
) As Char
This language is not supported or no code example is available.
public static char ToDigit( 
int nDigit 
)
This language is not supported or no code example is available.
public:  
static char ToDigit( 
int nDigit 
)
This language is not supported or no code example is available.
public static function ToDigit( 
nDigit : int 
) : char;
This language is not supported or no code example is available.

Parameters

nDigit
Type: int

Digit value in the range from 0 through 15.

Return Value

Type: char

Returns character in the range '0' through '9' or 'A' through 'F'.

Exception type Condition

ArgumentOutOfRangeException

Thrown when one or more arguments are outside the required range.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0