Click or drag to resize
ConvertToInt16 Method (UInt32)
Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static short ToInt16(
	uint value
)

Parameters

value
Type: SystemUInt32
The 32-bit unsigned integer to convert.

Return Value

Type: Int16
A 16-bit signed integer that is equivalent to value.
Exceptions
ExceptionCondition
OverflowExceptionvalue is greater than MaxValue.
See Also