NullableTypes Class Library

NullConvert.ToNullableInt16 Method (Int16, Int16)

Converts the specified Int16 value whose null value is simulated using a a conventional Int16 value to an equivalent NullableInt16.

[Visual Basic]
Overloads Public Shared Function ToNullableInt16( _
   ByVal x As Short, _
   ByVal conventionalNullValue As Short _
) As NullableInt16
public static NullableInt16 ToNullableInt16(
   short x,
   short conventionalNullValue


The Int16 value to convert.
The Int16 value that conventionally represent the null value.

Return Value

Null if x is equals to conventionalNullValue otherwise a NullableInt16 constructed from x.

See Also

NullConvert Class | NullableTypes.HelperFunctions Namespace | NullConvert.ToNullableInt16 Overload List