NullableTypes Class Library

NullableInt32.ToNullableInt16 Method 

Converts this NullableInt32 instance to a NullableInt16.

[Visual Basic]
Public Function ToNullableInt16() As NullableInt16
[C#]
public NullableInt16 ToNullableInt16();

Return Value

A NullableInt16 that is Null if this NullableInt32 is Null otherwise a NullableInt16 whose Value equals the Value of this instance.

Exceptions

Exception TypeCondition
OverflowExceptionx value is a number that is less than MinValue or greater than MaxValue.

See Also

NullableInt32 Class | NullableTypes Namespace