NullableTypes Class Library

NullConvert.From Method (NullableInt16, Int16)

Converts the specified NullableInt16 value to an equivalent Int16 value using a conventional Int16 value to represent the Null value.

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

Parameters

x
The NullableInt16 value to convert.
conventionalNullValue
The Int16 value that conventionally represent the null value.

Return Value

conventionalNullValue if x is Null otherwise the Value of x.

See Also

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