Mono Class Library: System.Convert Overview | Members

System.Convert.ToByte Method

Converts a int to a byte . [Edit]

public static byte ToByte (int value)

Parameters

value
The 32-bit signed integer value to be converted. [Edit]

Returns

value as a byte. [Edit]

Exceptions

TypeReason
OverflowExceptionvalue is greater than byte.MaxValue or less than byte.MinValue. [Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

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