Method ToInt32
- Namespace
- MongoDB.Bson.Serialization.Options
- Assembly
- MongoDB.Bson.dll
ToInt32(decimal)
Converts a Decimal to an Int32.
public int ToInt32(decimal value)
Parameters
valuedecimalA Decimal.
Returns
- int
An Int32.
ToInt32(Decimal128)
Converts a Decimal128 to an Int32.
public int ToInt32(Decimal128 value)
Parameters
valueDecimal128A Decimal128.
Returns
- int
An Int32.
ToInt32(double)
Converts a Double to an Int32.
public int ToInt32(double value)
Parameters
valuedoubleA Double.
Returns
- int
An Int32.
ToInt32(float)
Converts a Single to an Int32.
public int ToInt32(float value)
Parameters
valuefloatA Single.
Returns
- int
An Int32.
ToInt32(int)
Converts an Int32 to an Int32.
public int ToInt32(int value)
Parameters
valueintAn Int32.
Returns
- int
An Int32.
ToInt32(long)
Converts an Int64 to an Int32.
public int ToInt32(long value)
Parameters
valuelongAn Int64.
Returns
- int
An Int32.
ToInt32(short)
Converts an Int16 to an Int32.
public int ToInt32(short value)
Parameters
valueshortAn Int16.
Returns
- int
An Int32.
ToInt32(uint)
Converts a UInt32 to an Int32.
[CLSCompliant(false)]
public int ToInt32(uint value)
Parameters
valueuintA UInt32.
Returns
- int
An Int32.
ToInt32(ulong)
Converts a UInt64 to an Int32.
[CLSCompliant(false)]
public int ToInt32(ulong value)
Parameters
valueulongA UInt64.
Returns
- int
An Int32.
ToInt32(ushort)
Converts a UInt16 to an Int32.
[CLSCompliant(false)]
public int ToInt32(ushort value)
Parameters
valueushortA UInt16.
Returns
- int
An Int32.