ConvertToInt16 Method (UInt16) |
Converts the value of the specified 16-bit unsigned integer to the equivalent 16-bit signed integer.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static short ToInt16(
ushort value
)
Parameters
- value
- Type: SystemUInt16
The 16-bit unsigned integer to convert.
Return Value
Type:
Int16A 16-bit signed integer that is equivalent to
value.
Exceptions Exception | Condition |
---|
OverflowException | value is greater than MaxValue. |
See Also