Table of Contents

FromBinaryDigits Method

Definition

Namespace
Cuemon.Extensions
Assemblies
Cuemon.Extensions.Core.dll
Source
src/Cuemon.Extensions.Core/StringExtensions.cs

FromBinaryDigits(string)

Converts the specified input of binary digits to its equivalent byte array representation.

public static byte[] FromBinaryDigits(this string input)

Parameters

input string

The string to extend.

Returns

byte[]

A byte array that is equivalent to input.

Exceptions

ArgumentNullException

input cannot be null.

ArgumentException

input cannot be empty or consist only of white-space characters.

FormatException

input must consist only of binary digits.

See Also