NullableTypes Class Library

NullConvert.ToNullableSingle Method (Single, Single)

Converts the specified Single value whose null value is simulated using a a conventional Single value to an equivalent NullableSingle.

[Visual Basic]
Overloads Public Shared Function ToNullableSingle( _
   ByVal x As Single, _
   ByVal conventionalNullValue As Single _
) As NullableSingle
[C#]
public static NullableSingle ToNullableSingle(
   float x,
   float conventionalNullValue
);

Parameters

x
The Single value to convert.
conventionalNullValue
The Single value that conventionally represent the null value.

Return Value

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

See Also

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