Method ToUInt16
- Namespace
- MongoDB.Bson.Serialization.Options
- Assembly
- MongoDB.Bson.dll
ToUInt16(Decimal128)
Converts a Decimal128 to a UInt16.
[CLSCompliant(false)]
public ushort ToUInt16(Decimal128 value)
Parameters
value
Decimal128A Decimal128.
Returns
- ushort
A UInt16.
ToUInt16(double)
Converts a Double to a UInt16.
[CLSCompliant(false)]
public ushort ToUInt16(double value)
Parameters
value
doubleA Double.
Returns
- ushort
A UInt16.
ToUInt16(int)
Converts an Int32 to a UInt16.
[CLSCompliant(false)]
public ushort ToUInt16(int value)
Parameters
value
intAn Int32.
Returns
- ushort
A UInt16.
ToUInt16(long)
Converts an Int64 to a UInt16.
[CLSCompliant(false)]
public ushort ToUInt16(long value)
Parameters
value
longAn Int64.
Returns
- ushort
A UInt16.