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

A convention that sets the default value for members of a given type.
Inheritance: ConventionBase, IMemberMapConvention
Mostra file Open project: CloudMetal/mongo-csharp-driver

Public Methods

Method Description
Apply ( BsonMemberMap memberMap ) : void

Applies a modification to the member map.

MemberDefaultValueConvention ( Type type, object defaultValue ) : System

Initializes a new instance of the MemberDefaultValueConvention 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

MemberDefaultValueConvention() public method

Initializes a new instance of the MemberDefaultValueConvention class.
public MemberDefaultValueConvention ( Type type, object defaultValue ) : System
type System.Type The type of the member.
defaultValue object The default value for members of this type.
return System