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

A convention that sets whether to ignore default values during serialization.
Inheritance: ConventionBase, IMemberMapConvention
Show file Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
Apply ( BsonMemberMap memberMap ) : void

Applies a modification to the member map.

IgnoreIfDefaultConvention ( bool ignoreIfDefault )

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

IgnoreIfDefaultConvention() public method

Initializes a new instance of the IgnoreIfDefaultConvention class.
public IgnoreIfDefaultConvention ( bool ignoreIfDefault )
ignoreIfDefault bool Whether to ignore default values during serialization.