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

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

Méthodes publiques

Méthode 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 méthode

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

IgnoreIfNullConvention() public méthode

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