FromBinaryDigits Method
Definition
FromBinaryDigits()
Creates a parser that converts a string, represented in binary digits, to its equivalent byte array.
public static IParser<byte[]> FromBinaryDigits()
Returns
- IParser<byte[]>
An implementation of IConfigurableParser<TOptions> that produces byte arrays.
Exceptions
- ArgumentNullException
string cannot be null.
- ArgumentException
string cannot be empty or consist only of white-space characters.
- FormatException
string must consist only of binary digits.