C# Класс MongoDB.Bson.Serialization.Options.RepresentationSerializationOptions

Represents the external representation of a field or property.
Наследование: IBsonSerializationOptions
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplyAttribute ( IBsonSerializer serializer, Attribute attribute ) : void

Apply an attribute to these serialization options and modify the options accordingly.

Clone ( ) : IBsonSerializationOptions

Clones the serialization options.

RepresentationSerializationOptions ( BsonType representation ) : System

Initializes a new instance of the RepresentationSerializationOptions class.

RepresentationSerializationOptions ( BsonType representation, bool allowOverflow, bool allowTruncation ) : System

Initializes a new instance of the RepresentationSerializationOptions class.

ToDecimal ( double value ) : decimal

Converts a Double to a Decimal.

ToDecimal ( int value ) : decimal

Converts an Int32 to a Decimal.

ToDecimal ( long value ) : decimal

Converts an Int64 to a Decimal.

ToDouble ( decimal value ) : double

Converts a Decimal to a Double.

ToDouble ( double value ) : double

Converts a Double to a Double.

ToDouble ( float value ) : double

Converts a Single to a Double.

ToDouble ( int value ) : double

Converts an Int32 to a Double.

ToDouble ( long value ) : double

Converts an Int64 to a Double.

ToDouble ( short value ) : double

Converts an Int16 to a Double.

ToDouble ( uint value ) : double

Converts a UInt32 to a Double.

ToDouble ( ulong value ) : double

Converts a UInt64 to a Double.

ToDouble ( ushort value ) : double

Converts a UInt16 to a Double.

ToInt16 ( double value ) : short

Converts a Double to an Int16.

ToInt16 ( int value ) : short

Converts an Int32 to an Int16.

ToInt16 ( long value ) : short

Converts an Int64 to an Int16.

ToInt32 ( decimal value ) : int

Converts a Decimal to an Int32.

ToInt32 ( double value ) : int

Converts a Double to an Int32.

ToInt32 ( float value ) : int

Converts a Single to an Int32.

ToInt32 ( int value ) : int

Converts an Int32 to an Int32.

ToInt32 ( long value ) : int

Converts an Int64 to an Int32.

ToInt32 ( short value ) : int

Converts an Int16 to an Int32.

ToInt32 ( uint value ) : int

Converts a UInt32 to an Int32.

ToInt32 ( ulong value ) : int

Converts a UInt64 to an Int32.

ToInt32 ( ushort value ) : int

Converts a UInt16 to an Int32.

ToInt64 ( decimal value ) : long

Converts a Decimal to an Int64.

ToInt64 ( double value ) : long

Converts a Double to an Int64.

ToInt64 ( float value ) : long

Converts a Single to an Int64.

ToInt64 ( int value ) : long

Converts an Int32 to an Int64.

ToInt64 ( long value ) : long

Converts an Int64 to an Int64.

ToInt64 ( short value ) : long

Converts an Int16 to an Int64.

ToInt64 ( uint value ) : long

Converts a UInt32 to an Int64.

ToInt64 ( ulong value ) : long

Converts a UInt64 to an Int64.

ToInt64 ( ushort value ) : long

Converts a UInt16 to an Int64.

ToSingle ( double value ) : float

Converts a Double to a Single.

ToSingle ( int value ) : float

Converts an Int32 to a Single.

ToSingle ( long value ) : float

Converts an Int64 to a Single.

ToUInt16 ( double value ) : ushort

Converts a Double to a UInt16.

ToUInt16 ( int value ) : ushort

Converts an Int32 to a UInt16.

ToUInt16 ( long value ) : ushort

Converts an Int64 to a UInt16.

ToUInt32 ( double value ) : uint

Converts a Double to a UInt32.

ToUInt32 ( int value ) : uint

Converts an Int32 to a UInt32.

ToUInt32 ( long value ) : uint

Converts an Int64 to a UInt32.

ToUInt64 ( double value ) : ulong

Converts a Double to a UInt64.

ToUInt64 ( int value ) : ulong

Converts an Int32 to a UInt64.

ToUInt64 ( long value ) : ulong

Converts an Int64 to a UInt64.

Описание методов

ApplyAttribute() публичный Метод

Apply an attribute to these serialization options and modify the options accordingly.
public ApplyAttribute ( IBsonSerializer serializer, Attribute attribute ) : void
serializer IBsonSerializer The serializer that these serialization options are for.
attribute System.Attribute The serialization options attribute.
Результат void

Clone() публичный Метод

Clones the serialization options.
public Clone ( ) : IBsonSerializationOptions
Результат IBsonSerializationOptions

RepresentationSerializationOptions() публичный Метод

Initializes a new instance of the RepresentationSerializationOptions class.
public RepresentationSerializationOptions ( BsonType representation ) : System
representation BsonType The external representation.
Результат System

RepresentationSerializationOptions() публичный Метод

Initializes a new instance of the RepresentationSerializationOptions class.
public RepresentationSerializationOptions ( BsonType representation, bool allowOverflow, bool allowTruncation ) : System
representation BsonType The external representation.
allowOverflow bool Whether to allow overflow.
allowTruncation bool Whether to allow truncation.
Результат System

ToDecimal() публичный Метод

Converts a Double to a Decimal.
public ToDecimal ( double value ) : decimal
value double A Double.
Результат decimal

ToDecimal() публичный Метод

Converts an Int32 to a Decimal.
public ToDecimal ( int value ) : decimal
value int An Int32.
Результат decimal

ToDecimal() публичный Метод

Converts an Int64 to a Decimal.
public ToDecimal ( long value ) : decimal
value long An Int64.
Результат decimal

ToDouble() публичный Метод

Converts a Decimal to a Double.
public ToDouble ( decimal value ) : double
value decimal A Decimal.
Результат double

ToDouble() публичный Метод

Converts a Double to a Double.
public ToDouble ( double value ) : double
value double A Double.
Результат double

ToDouble() публичный Метод

Converts a Single to a Double.
public ToDouble ( float value ) : double
value float A Single.
Результат double

ToDouble() публичный Метод

Converts an Int32 to a Double.
public ToDouble ( int value ) : double
value int An Int32.
Результат double

ToDouble() публичный Метод

Converts an Int64 to a Double.
public ToDouble ( long value ) : double
value long An Int64.
Результат double

ToDouble() публичный Метод

Converts an Int16 to a Double.
public ToDouble ( short value ) : double
value short An Int16.
Результат double

ToDouble() публичный Метод

Converts a UInt32 to a Double.
public ToDouble ( uint value ) : double
value uint A UInt32.
Результат double

ToDouble() публичный Метод

Converts a UInt64 to a Double.
public ToDouble ( ulong value ) : double
value ulong A UInt64.
Результат double

ToDouble() публичный Метод

Converts a UInt16 to a Double.
public ToDouble ( ushort value ) : double
value ushort A UInt16.
Результат double

ToInt16() публичный Метод

Converts a Double to an Int16.
public ToInt16 ( double value ) : short
value double A Double.
Результат short

ToInt16() публичный Метод

Converts an Int32 to an Int16.
public ToInt16 ( int value ) : short
value int An Int32.
Результат short

ToInt16() публичный Метод

Converts an Int64 to an Int16.
public ToInt16 ( long value ) : short
value long An Int64.
Результат short

ToInt32() публичный Метод

Converts a Decimal to an Int32.
public ToInt32 ( decimal value ) : int
value decimal A Decimal.
Результат int

ToInt32() публичный Метод

Converts a Double to an Int32.
public ToInt32 ( double value ) : int
value double A Double.
Результат int

ToInt32() публичный Метод

Converts a Single to an Int32.
public ToInt32 ( float value ) : int
value float A Single.
Результат int

ToInt32() публичный Метод

Converts an Int32 to an Int32.
public ToInt32 ( int value ) : int
value int An Int32.
Результат int

ToInt32() публичный Метод

Converts an Int64 to an Int32.
public ToInt32 ( long value ) : int
value long An Int64.
Результат int

ToInt32() публичный Метод

Converts an Int16 to an Int32.
public ToInt32 ( short value ) : int
value short An Int16.
Результат int

ToInt32() публичный Метод

Converts a UInt32 to an Int32.
public ToInt32 ( uint value ) : int
value uint A UInt32.
Результат int

ToInt32() публичный Метод

Converts a UInt64 to an Int32.
public ToInt32 ( ulong value ) : int
value ulong A UInt64.
Результат int

ToInt32() публичный Метод

Converts a UInt16 to an Int32.
public ToInt32 ( ushort value ) : int
value ushort A UInt16.
Результат int

ToInt64() публичный Метод

Converts a Decimal to an Int64.
public ToInt64 ( decimal value ) : long
value decimal A Decimal.
Результат long

ToInt64() публичный Метод

Converts a Double to an Int64.
public ToInt64 ( double value ) : long
value double A Double.
Результат long

ToInt64() публичный Метод

Converts a Single to an Int64.
public ToInt64 ( float value ) : long
value float A Single.
Результат long

ToInt64() публичный Метод

Converts an Int32 to an Int64.
public ToInt64 ( int value ) : long
value int An Int32.
Результат long

ToInt64() публичный Метод

Converts an Int64 to an Int64.
public ToInt64 ( long value ) : long
value long An Int64.
Результат long

ToInt64() публичный Метод

Converts an Int16 to an Int64.
public ToInt64 ( short value ) : long
value short An Int16.
Результат long

ToInt64() публичный Метод

Converts a UInt32 to an Int64.
public ToInt64 ( uint value ) : long
value uint A UInt32.
Результат long

ToInt64() публичный Метод

Converts a UInt64 to an Int64.
public ToInt64 ( ulong value ) : long
value ulong A UInt64.
Результат long

ToInt64() публичный Метод

Converts a UInt16 to an Int64.
public ToInt64 ( ushort value ) : long
value ushort A UInt16.
Результат long

ToSingle() публичный Метод

Converts a Double to a Single.
public ToSingle ( double value ) : float
value double A Double.
Результат float

ToSingle() публичный Метод

Converts an Int32 to a Single.
public ToSingle ( int value ) : float
value int An Int32.
Результат float

ToSingle() публичный Метод

Converts an Int64 to a Single.
public ToSingle ( long value ) : float
value long An Int64.
Результат float

ToUInt16() публичный Метод

Converts a Double to a UInt16.
public ToUInt16 ( double value ) : ushort
value double A Double.
Результат ushort

ToUInt16() публичный Метод

Converts an Int32 to a UInt16.
public ToUInt16 ( int value ) : ushort
value int An Int32.
Результат ushort

ToUInt16() публичный Метод

Converts an Int64 to a UInt16.
public ToUInt16 ( long value ) : ushort
value long An Int64.
Результат ushort

ToUInt32() публичный Метод

Converts a Double to a UInt32.
public ToUInt32 ( double value ) : uint
value double A Double.
Результат uint

ToUInt32() публичный Метод

Converts an Int32 to a UInt32.
public ToUInt32 ( int value ) : uint
value int An Int32.
Результат uint

ToUInt32() публичный Метод

Converts an Int64 to a UInt32.
public ToUInt32 ( long value ) : uint
value long An Int64.
Результат uint

ToUInt64() публичный Метод

Converts a Double to a UInt64.
public ToUInt64 ( double value ) : ulong
value double A Double.
Результат ulong

ToUInt64() публичный Метод

Converts an Int32 to a UInt64.
public ToUInt64 ( int value ) : ulong
value int An Int32.
Результат ulong

ToUInt64() публичный Метод

Converts an Int64 to a UInt64.
public ToUInt64 ( long value ) : ulong
value long An Int64.
Результат ulong