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
[C#]
public static NullableDecimal ToNullableDecimal(
   decimal x,
   decimal conventionalNullValue
);

Parameters

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