CharExtensionTryParseHexDigit Method
Tries to interpret a character as a hexadecimal digit and to return the
value that this hexadecimal digit represents.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static bool TryParseHexDigit(
this char digit,
out int? value
)
<ExtensionAttribute>
Public Shared Function TryParseHexDigit (
digit As Char,
<OutAttribute> ByRef value As Integer?
) As Boolean
public:
[ExtensionAttribute]
static bool TryParseHexDigit(
wchar_t digit,
[OutAttribute] Nullable<int>% value
)
[<ExtensionAttribute>]
static member TryParseHexDigit :
digit : char *
value : Nullable<int> byref -> bool
- digit Char
- The Unicode character to analyze.
- value NullableInt32
- After the method has been successfully completed, it contains
the value that digit represents as a hexadecimal digit, otherwise
null. The parameter is passed uninitialized.
Booleantrue if
digit represents a hexadecimal digit,
otherwise
false.In Visual Basic and C#, you can call this method as an instance method on any object of type
Char. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).