ConvertToByte Method (Int64) |
Converts the value of the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static byte ToByte(
long value
)
Parameters
- value
- Type: SystemInt64
The 64-bit signed integer to convert.
Return Value
Type:
ByteAn 8-bit unsigned integer that is equivalent to
value.
Exceptions Exception | Condition |
---|
OverflowException | value is less than MinValue or greater than MaxValue. |
See Also