Mono Class Library: System.Convert Overview | Members

System.Convert.ToByte Method

Converts a uint to a byte .

[System.CLSCompliant(false)]
public static byte ToByte (uint value)

Parameters

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

Returns

value as a byte.

Exceptions

TypeReason
OverflowExceptionvalue is greater than byte.MaxValue.

Remarks

This member is not CLS-compliant. For a CLS-compliant alternative, use Convert.ToByte(object)(long).

Requirements

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