Constructor BsonIgnoreIfDefaultAttribute
- Namespace
- MongoDB.Bson.Serialization.Attributes
- Assembly
- MongoDB.Bson.dll
BsonIgnoreIfDefaultAttribute()
Initializes a new instance of the BsonIgnoreIfDefaultAttribute class.
BsonIgnoreIfDefaultAttribute(bool)
Initializes a new instance of the BsonIgnoreIfDefaultAttribute class.
Parameters
value
boolWhether a field or property equal to the default value should be ignored when serializing this class.