Table of Contents

Class RepresentationConverter

Namespace
MongoDB.Bson.Serialization.Options
Assembly
MongoDB.Bson.dll

Represents the external representation of a field or property.

public class RepresentationConverter
Inheritance
RepresentationConverter
Inherited Members
Extension Methods

Constructors

RepresentationConverter(bool, bool)

Initializes a new instance of the RepresentationConverter class.

Properties

AllowOverflow

Gets whether to allow overflow.

AllowTruncation

Gets whether to allow truncation.

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

ToDecimal(Decimal128)

Converts a Decimal128 to a Decimal.

ToDecimal(double)

Converts a Double to a Decimal.

ToDecimal(int)

Converts an Int32 to a Decimal.

ToDecimal(long)

Converts an Int64 to a Decimal.

ToDecimal128(decimal)

Converts a decimal to a Decimal128.

ToDecimal128(double)

Converts a Double to a Decimal128.

ToDecimal128(int)

Converts an Int32 to a Decimal128.

ToDecimal128(long)

Converts an Int64 to a Decimal128.

ToDecimal128(ulong)

Converts a UInt64 to a Decimal128.

ToDouble(Decimal128)

Converts a Decimal128 to a Double.

ToDouble(decimal)

Converts a Decimal to a Double.

ToDouble(double)

Converts a Double to a Double.

ToDouble(short)

Converts an Int16 to a Double.

ToDouble(int)

Converts an Int32 to a Double.

ToDouble(long)

Converts an Int64 to a Double.

ToDouble(float)

Converts a Single to a Double.

ToDouble(ushort)

Converts a UInt16 to a Double.

ToDouble(uint)

Converts a UInt32 to a Double.

ToDouble(ulong)

Converts a UInt64 to a Double.

ToInt16(Decimal128)

Converts a Decimal128 to an Int16.

ToInt16(double)

Converts a Double to an Int16.

ToInt16(int)

Converts an Int32 to an Int16.

ToInt16(long)

Converts an Int64 to an Int16.

ToInt32(Decimal128)

Converts a Decimal128 to an Int32.

ToInt32(decimal)

Converts a Decimal to an Int32.

ToInt32(double)

Converts a Double to an Int32.

ToInt32(short)

Converts an Int16 to an Int32.

ToInt32(int)

Converts an Int32 to an Int32.

ToInt32(long)

Converts an Int64 to an Int32.

ToInt32(float)

Converts a Single to an Int32.

ToInt32(ushort)

Converts a UInt16 to an Int32.

ToInt32(uint)

Converts a UInt32 to an Int32.

ToInt32(ulong)

Converts a UInt64 to an Int32.

ToInt64(Decimal128)

Converts a Decimal128 to an Int64.

ToInt64(decimal)

Converts a Decimal to an Int64.

ToInt64(double)

Converts a Double to an Int64.

ToInt64(short)

Converts an Int16 to an Int64.

ToInt64(int)

Converts an Int32 to an Int64.

ToInt64(long)

Converts an Int64 to an Int64.

ToInt64(float)

Converts a Single to an Int64.

ToInt64(ushort)

Converts a UInt16 to an Int64.

ToInt64(uint)

Converts a UInt32 to an Int64.

ToInt64(ulong)

Converts a UInt64 to an Int64.

ToSingle(Decimal128)

Converts a Decimal128 to a Single.

ToSingle(double)

Converts a Double to a Single.

ToSingle(int)

Converts an Int32 to a Single.

ToSingle(long)

Converts an Int64 to a Single.

ToUInt16(Decimal128)

Converts a Decimal128 to a UInt16.

ToUInt16(double)

Converts a Double to a UInt16.

ToUInt16(int)

Converts an Int32 to a UInt16.

ToUInt16(long)

Converts an Int64 to a UInt16.

ToUInt32(Decimal128)

Converts a Decimal128 to a UInt32.

ToUInt32(double)

Converts a Double to a UInt32.

ToUInt32(int)

Converts an Int32 to a UInt32.

ToUInt32(long)

Converts an Int64 to a UInt32.

ToUInt64(Decimal128)

Converts a Decimal128 to a UInt64.

ToUInt64(double)

Converts a Double to a UInt64.

ToUInt64(int)

Converts an Int32 to a UInt64.

ToUInt64(long)

Converts an Int64 to a UInt64.