NullableTypes Class Library

NullConvert.From Method (NullableInt32, Int32)

Converts the specified NullableInt32 value to an equivalent Int32 value using a conventional Int32 value to represent the Null value.

[Visual Basic]
Overloads Public Shared Function From( _
   ByVal x As NullableInt32, _
   ByVal conventionalNullValue As Integer _
) As Integer
public static int From(
   NullableInt32 x,
   int conventionalNullValue


The NullableInt32 value to convert.
The Int32 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