ConvertToUInt16 Method (Int32) |
Converts the value of the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static ushort ToUInt16(
int value
)
Parameters
- value
- Type: SystemInt32
The 32-bit signed integer to convert.
Return Value
Type:
UInt16A 16-bit unsigned integer that is equivalent to
value.
Exceptions Exception | Condition |
---|
OverflowException | value is less than zero or greater than MaxValue. |
See Also