Mono Class Library: System.Convert Overview | Members

System.Convert.ToByte Method

Converts a int to a byte .

public static byte ToByte (int value)

Parameters

value
The 32-bit signed integer value to be converted.

Returns

value as a byte.

Exceptions

TypeReason
OverflowExceptionvalue is greater than byte.MaxValue or less than byte.MinValue.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0