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
[C#]
public static int From(
   NullableInt32 x,
   int conventionalNullValue
);

Parameters

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