NullableTypes Class Library

NullConvert.ToNullableByte Method (Byte, Byte)

Converts the specified Byte value whose null value is simulated using a a conventional Byte value to an equivalent NullableByte.

[Visual Basic]
Overloads Public Shared Function ToNullableByte( _
   ByVal x As Byte, _
   ByVal conventionalNullValue As Byte _
) As NullableByte
public static NullableByte ToNullableByte(
   byte x,
   byte conventionalNullValue


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

Return Value

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

See Also

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