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
boolWhether a field or property equal to null should be ignored when serializing this class.