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

A convention that sets whether to ignore nulls during serialization.
Inheritance: ConventionBase, IMemberMapConvention
Mostrar archivo Open project: CloudMetal/mongo-csharp-driver Class Usage Examples

Public Methods

Method Description
Apply ( BsonMemberMap memberMap ) : void

Applies a modification to the member map.

IgnoreIfNullConvention ( bool ignoreIfNull )

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

IgnoreIfNullConvention() public method

Initializes a new instance of the IgnoreIfNullConvention class.
public IgnoreIfNullConvention ( bool ignoreIfNull )
ignoreIfNull bool Whether to ignore nulls during serialization.