C# Class MongoDB.Bson.Serialization.Conventions.TypeRepresentationSerializationOptionsConvention

Inheritance: ISerializationOptionsConvention
Mostra file Open project: egametang/Egametang

Public Methods

Method Description
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.

Method Details

GetSerializationOptions() public method

Gets the BSON serialization options for a member.
public GetSerializationOptions ( MemberInfo memberInfo ) : IBsonSerializationOptions
memberInfo System.Reflection.MemberInfo The member.
return IBsonSerializationOptions

TypeRepresentationSerializationOptionsConvention() public method

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.
return System