C# Класс MongoDB.Bson.Serialization.Conventions.TypeRepresentationSerializationOptionsConvention

Наследование: ISerializationOptionsConvention
Показать файл Открыть проект

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

Метод Описание
GetSerializationOptions ( MemberInfo memberInfo ) : IBsonSerializationOptions

Gets the BSON serialization options for a member.

TypeRepresentationSerializationOptionsConvention ( Type type, BsonType representation ) : System

Initializes a new instance of the TypeRepresentationSerializationOptionsConvention class.

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

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

Gets the BSON serialization options for a member.
public GetSerializationOptions ( MemberInfo memberInfo ) : IBsonSerializationOptions
memberInfo System.Reflection.MemberInfo The member.
Результат IBsonSerializationOptions

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

Initializes a new instance of the TypeRepresentationSerializationOptionsConvention class.
public TypeRepresentationSerializationOptionsConvention ( Type type, BsonType representation ) : System
type System.Type The type of the member.
representation BsonType The BSON representation to use for this type.
Результат System