Click or drag to resize
ConvertToByte Method (Int32)
Converts the value of the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static byte ToByte(
	int value
)

Parameters

value
Type: SystemInt32
The 32-bit signed integer to convert.

Return Value

Type: Byte
An 8-bit unsigned integer that is equivalent to value.
Exceptions
ExceptionCondition
OverflowExceptionvalue is less than MinValue or greater than MaxValue.
See Also