Checks whether the given string is a valid hex number.

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

Public Shared Function IsHex( _ 
ByVal s As String
) As Boolean
This language is not supported or no code example is available.
public static bool IsHex( 
string s 
)
This language is not supported or no code example is available.
public:  
static bool IsHex( 
String^ s 
)
This language is not supported or no code example is available.
public static function IsHex( 
s : String 
) : boolean;
This language is not supported or no code example is available.

Parameters

s
Type: string

The string to check.

Return Value

Type: bool

If the string is a valid hex number, then true is returned. Otherwise false is returned.

.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