Click or drag to resize
RepresentationConverter Class
Represents the external representation of a field or property.
Inheritance Hierarchy
SystemObject
  MongoDB.Bson.Serialization.OptionsRepresentationConverter

Namespace: MongoDB.Bson.Serialization.Options
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.4.1
Syntax
public class RepresentationConverter

The RepresentationConverter type exposes the following members.

Constructors
  NameDescription
Public methodRepresentationConverter
Initializes a new instance of the RepresentationConverter class.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToDecimal(Double)
Converts a Double to a Decimal.
Public methodToDecimal(Int32)
Converts an Int32 to a Decimal.
Public methodToDecimal(Int64)
Converts an Int64 to a Decimal.
Public methodToDecimal(Decimal128)
Converts a Decimal128 to a Decimal.
Public methodToDecimal128(Decimal)
Converts a decimal to a Decimal128.
Public methodToDecimal128(Double)
Converts a Double to a Decimal128.
Public methodToDecimal128(Int32)
Converts an Int32 to a Decimal128.
Public methodToDecimal128(Int64)
Converts an Int64 to a Decimal128.
Public methodToDecimal128(UInt64)
Converts a UInt64 to a Decimal128.
Public methodToDouble(Decimal)
Converts a Decimal to a Double.
Public methodToDouble(Double)
Converts a Double to a Double.
Public methodToDouble(Int16)
Converts an Int16 to a Double.
Public methodToDouble(Int32)
Converts an Int32 to a Double.
Public methodToDouble(Int64)
Converts an Int64 to a Double.
Public methodToDouble(Single)
Converts a Single to a Double.
Public methodToDouble(UInt16)
Converts a UInt16 to a Double.
Public methodToDouble(UInt32)
Converts a UInt32 to a Double.
Public methodToDouble(UInt64)
Converts a UInt64 to a Double.
Public methodToDouble(Decimal128)
Converts a Decimal128 to a Double.
Public methodToInt16(Double)
Converts a Double to an Int16.
Public methodToInt16(Int32)
Converts an Int32 to an Int16.
Public methodToInt16(Int64)
Converts an Int64 to an Int16.
Public methodToInt16(Decimal128)
Converts a Decimal128 to an Int16.
Public methodToInt32(Decimal)
Converts a Decimal to an Int32.
Public methodToInt32(Double)
Converts a Double to an Int32.
Public methodToInt32(Int16)
Converts an Int16 to an Int32.
Public methodToInt32(Int32)
Converts an Int32 to an Int32.
Public methodToInt32(Int64)
Converts an Int64 to an Int32.
Public methodToInt32(Single)
Converts a Single to an Int32.
Public methodToInt32(UInt16)
Converts a UInt16 to an Int32.
Public methodToInt32(UInt32)
Converts a UInt32 to an Int32.
Public methodToInt32(UInt64)
Converts a UInt64 to an Int32.
Public methodToInt32(Decimal128)
Converts a Decimal128 to an Int32.
Public methodToInt64(Decimal)
Converts a Decimal to an Int64.
Public methodToInt64(Double)
Converts a Double to an Int64.
Public methodToInt64(Int16)
Converts an Int16 to an Int64.
Public methodToInt64(Int32)
Converts an Int32 to an Int64.
Public methodToInt64(Int64)
Converts an Int64 to an Int64.
Public methodToInt64(Single)
Converts a Single to an Int64.
Public methodToInt64(UInt16)
Converts a UInt16 to an Int64.
Public methodToInt64(UInt32)
Converts a UInt32 to an Int64.
Public methodToInt64(UInt64)
Converts a UInt64 to an Int64.
Public methodToInt64(Decimal128)
Converts a Decimal128 to an Int64.
Public methodToSingle(Double)
Converts a Double to a Single.
Public methodToSingle(Int32)
Converts an Int32 to a Single.
Public methodToSingle(Int64)
Converts an Int64 to a Single.
Public methodToSingle(Decimal128)
Converts a Decimal128 to a Single.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodToUInt16(Double)
Converts a Double to a UInt16.
Public methodToUInt16(Int32)
Converts an Int32 to a UInt16.
Public methodToUInt16(Int64)
Converts an Int64 to a UInt16.
Public methodToUInt16(Decimal128)
Converts a Decimal128 to a UInt16.
Public methodToUInt32(Double)
Converts a Double to a UInt32.
Public methodToUInt32(Int32)
Converts an Int32 to a UInt32.
Public methodToUInt32(Int64)
Converts an Int64 to a UInt32.
Public methodToUInt32(Decimal128)
Converts a Decimal128 to a UInt32.
Public methodToUInt64(Double)
Converts a Double to a UInt64.
Public methodToUInt64(Int32)
Converts an Int32 to a UInt64.
Public methodToUInt64(Int64)
Converts an Int64 to a UInt64.
Public methodToUInt64(Decimal128)
Converts a Decimal128 to a UInt64.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
Properties
  NameDescription
Public propertyAllowOverflow
Gets whether to allow overflow.
Public propertyAllowTruncation
Gets whether to allow truncation.
Top
See Also