Table of Contents

FromBinaryDigits Method

Definition

Namespace
Cuemon.Text
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Text/ParserFactory.cs

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.