NullableTypes Class Library

NullConvert.ToNullableInt32 Method (Int32, Int32)

Converts the specified Int32 value whose null value is simulated using a a conventional Int32 value to an equivalent NullableInt32.

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


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

Return Value

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

See Also

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