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

A convention that allows you to set the Enum serialization representation
Inheritance: ConventionBase, IMemberMapConvention
Exibir arquivo Open project: egametang/Egametang Class Usage Examples

Public Methods

Method Description
Apply ( BsonMemberMap memberMap ) : void

Applies a modification to the member map.

EnumRepresentationConvention ( BsonType representation ) : System

Initializes a new instance of the EnumRepresentationConvention class.

Method Details

Apply() public method

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

EnumRepresentationConvention() public method

Initializes a new instance of the EnumRepresentationConvention class.
public EnumRepresentationConvention ( BsonType representation ) : System
representation BsonType The serialization representation. 0 is used to detect representation /// from the enum itself.
return System