Table of Contents

ThrowIfNotBinaryDigits Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Validator.cs

ThrowIfNotBinaryDigits(string, string, string)

Validates and throws an ArgumentOutOfRangeException if the specified argument consist of anything besides binary digits.

public static void ThrowIfNotBinaryDigits(string argument, string message = "Value must consist only of binary digits.", string paramName = null)

Parameters

argument string

The value to be evaluated.

message string

A message that describes the error.

paramName string

The name of the parameter that caused the exception.

Exceptions

ArgumentOutOfRangeException

argument must consist only of binary digits.