Table of Contents

Constructor BsonIgnoreIfNullAttribute

Namespace
MongoDB.Bson.Serialization.Attributes
Assembly
MongoDB.Bson.dll

BsonIgnoreIfNullAttribute()

Initializes a new instance of the BsonIgnoreIfNullAttribute class.

public BsonIgnoreIfNullAttribute()

BsonIgnoreIfNullAttribute(bool)

Initializes a new instance of the BsonIgnoreIfNullAttribute class.

public BsonIgnoreIfNullAttribute(bool value)

Parameters

value bool

Whether a field or property equal to null should be ignored when serializing this class.