C# Class MongoDB.Bson.Serialization.Attributes.BsonSerializerAttribute

Inheritance: System.Attribute, IBsonMemberMapAttribute, IBsonMemberMapModifier
Exibir arquivo Open project: egametang/Egametang

Public Methods

Method Description
Apply ( BsonMemberMap memberMap ) : void

Applies a modification to the member map.

BsonSerializerAttribute ( ) : System

Initializes a new instance of the BsonSerializerAttribute class.

BsonSerializerAttribute ( Type serializerType ) : System

Initializes a new instance of the BsonSerializerAttribute class.

Private Methods

Method Description
CreateSerializer ( Type type ) : IBsonSerializer

Creates a serializer for a type based on the serializer type specified by the attribute.

Method Details

Apply() public method

Applies a modification to the member map.
public Apply ( BsonMemberMap memberMap ) : void
memberMap BsonMemberMap The member map.
return void

BsonSerializerAttribute() public method

Initializes a new instance of the BsonSerializerAttribute class.
public BsonSerializerAttribute ( ) : System
return System

BsonSerializerAttribute() public method

Initializes a new instance of the BsonSerializerAttribute class.
public BsonSerializerAttribute ( Type serializerType ) : System
serializerType System.Type The type of the serializer to use for a class.
return System