CharExtensionTryParseBinaryDigit Method
Tries to interpret a character as a binary digit (0 or 1) and to return
the value that this binary digit represents.
Namespace: FolkerKinzel.StringsAssembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
public static bool TryParseBinaryDigit(
this char digit,
out int? value
)
<ExtensionAttribute>
Public Shared Function TryParseBinaryDigit (
digit As Char,
<OutAttribute> ByRef value As Integer?
) As Boolean
public:
[ExtensionAttribute]
static bool TryParseBinaryDigit(
wchar_t digit,
[OutAttribute] Nullable<int>% value
)
[<ExtensionAttribute>]
static member TryParseBinaryDigit :
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 binary digit, otherwise
null. The parameter is passed uninitialized.
Booleantrue if
digit represents a binary 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).