Mono Class Library: System.Convert Overview | Members

System.Convert.ToInt16 Method

Converts a long to a short.

public static short ToInt16 (long value)

Parameters

value
The 64-bit signed integer value to be converted.

Returns

value as a 16-bit signed integer.

Exceptions

TypeReason
OverflowExceptionvalue is greater than short.MaxValue or less than short.MinValue.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0