Method ToInt64
- Namespace
- MongoDB.Bson.Serialization.Options
- Assembly
- MongoDB.Bson.dll
ToInt64(decimal)
Converts a Decimal to an Int64.
public long ToInt64(decimal value)
Parameters
value
decimalA Decimal.
Returns
- long
An Int64.
ToInt64(Decimal128)
Converts a Decimal128 to an Int64.
public long ToInt64(Decimal128 value)
Parameters
value
Decimal128A Decimal128.
Returns
- long
An Int64.
ToInt64(double)
Converts a Double to an Int64.
public long ToInt64(double value)
Parameters
value
doubleA Double.
Returns
- long
An Int64.
ToInt64(float)
Converts a Single to an Int64.
public long ToInt64(float value)
Parameters
value
floatA Single.
Returns
- long
An Int64.
ToInt64(int)
Converts an Int32 to an Int64.
public long ToInt64(int value)
Parameters
value
intAn Int32.
Returns
- long
An Int64.
ToInt64(long)
Converts an Int64 to an Int64.
public long ToInt64(long value)
Parameters
value
longAn Int64.
Returns
- long
An Int64.
ToInt64(short)
Converts an Int16 to an Int64.
public long ToInt64(short value)
Parameters
value
shortAn Int16.
Returns
- long
An Int64.
ToInt64(uint)
Converts a UInt32 to an Int64.
[CLSCompliant(false)]
public long ToInt64(uint value)
Parameters
value
uintA UInt32.
Returns
- long
An Int64.
ToInt64(ulong)
Converts a UInt64 to an Int64.
[CLSCompliant(false)]
public long ToInt64(ulong value)
Parameters
value
ulongA UInt64.
Returns
- long
An Int64.
ToInt64(ushort)
Converts a UInt16 to an Int64.
[CLSCompliant(false)]
public long ToInt64(ushort value)
Parameters
value
ushortA UInt16.
Returns
- long
An Int64.