NullableTypes Class Library

NullableString.ToNullableInt16 Method 

Converts this NullableString instance to a NullableInt16.

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

Return Value

A NullableInt16 that is Null if this NullableString is Null otherwise a NullableInt16 whose Value equals the number represented by this NullableString.

Exceptions

Exception TypeCondition
FormatException this NullableString instance is not of the correct format.
OverflowExceptionx value represent a number that is less than MinValue or greater than MaxValue.

See Also

NullableString Class | NullableTypes Namespace | Parse