Table of Contents

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 decimal

A Decimal.

Returns

long

An Int64.

ToInt64(Decimal128)

Converts a Decimal128 to an Int64.

public long ToInt64(Decimal128 value)

Parameters

value Decimal128

A Decimal128.

Returns

long

An Int64.

ToInt64(double)

Converts a Double to an Int64.

public long ToInt64(double value)

Parameters

value double

A Double.

Returns

long

An Int64.

ToInt64(float)

Converts a Single to an Int64.

public long ToInt64(float value)

Parameters

value float

A Single.

Returns

long

An Int64.

ToInt64(int)

Converts an Int32 to an Int64.

public long ToInt64(int value)

Parameters

value int

An Int32.

Returns

long

An Int64.

ToInt64(long)

Converts an Int64 to an Int64.

public long ToInt64(long value)

Parameters

value long

An Int64.

Returns

long

An Int64.

ToInt64(short)

Converts an Int16 to an Int64.

public long ToInt64(short value)

Parameters

value short

An Int16.

Returns

long

An Int64.

ToInt64(uint)

Converts a UInt32 to an Int64.

[CLSCompliant(false)]
public long ToInt64(uint value)

Parameters

value uint

A UInt32.

Returns

long

An Int64.

ToInt64(ulong)

Converts a UInt64 to an Int64.

[CLSCompliant(false)]
public long ToInt64(ulong value)

Parameters

value ulong

A UInt64.

Returns

long

An Int64.

ToInt64(ushort)

Converts a UInt16 to an Int64.

[CLSCompliant(false)]
public long ToInt64(ushort value)

Parameters

value ushort

A UInt16.

Returns

long

An Int64.