NullableTypes Class Library

NullConvert.ToNullableDecimal Method (Decimal, Decimal)

Converts the specified Decimal value whose null value is simulated using a a conventional Decimal value to an equivalent NullableDecimal.

[Visual Basic]
Overloads Public Shared Function ToNullableDecimal( _
   ByVal x As Decimal, _
   ByVal conventionalNullValue As Decimal _
) As NullableDecimal
public static NullableDecimal ToNullableDecimal(
   decimal x,
   decimal conventionalNullValue


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

Return Value

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

See Also

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