Table of Contents

Method ThrowOutOfByteRange

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ThrowOutOfByteRange(int, string)

Throws an ArgumentException if the specified value is outside the valid range for a byte.

public static void ThrowOutOfByteRange(int v, string n)

Parameters

v int

The value to validate.

n string

The name of the variable being validated, used in the exception message.

Exceptions

ArgumentException

Thrown if v is less than MinValue or greater than MaxValue.