Method ToInt16
- Namespace
- MongoDB.Bson.Serialization.Options
- Assembly
- MongoDB.Bson.dll
ToInt16(Decimal128)
Converts a Decimal128 to an Int16.
public short ToInt16(Decimal128 value)
Parameters
value
Decimal128A Decimal128.
Returns
- short
An Int16.
ToInt16(double)
Converts a Double to an Int16.
public short ToInt16(double value)
Parameters
value
doubleA Double.
Returns
- short
An Int16.
ToInt16(int)
Converts an Int32 to an Int16.
public short ToInt16(int value)
Parameters
value
intAn Int32.
Returns
- short
An Int16.
ToInt16(long)
Converts an Int64 to an Int16.
public short ToInt16(long value)
Parameters
value
longAn Int64.
Returns
- short
An Int16.