Check if supplied string is a series of hexadecimal numbers. The check is made ONLY on the first 20 hex numbers, if these are present.

Namespace: LLCryptoLib.Utils
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public static bool IsHex(
	string text,
	HexEnum style
)
Visual Basic
Public Shared Function IsHex ( _
	text As String, _
	style As HexEnum _
) As Boolean
Visual C++
public:
static bool IsHex(
	String^ text, 
	HexEnum style
)

Parameters

text
Type: System..::..String
String to verify
style
Type: LLCryptoLib.Utils..::..HexEnum
Style of the supplied text string

Return Value

True, if supplied string appears to be hexadecimal

Exceptions

ExceptionCondition
System..::..ArgumentNullException

See Also