Click or drag to resize

IgnoreIfDefaultConvention Constructor

Initializes a new instance of the IgnoreIfDefaultConvention class.

Namespace:  MongoDB.Bson.Serialization.Conventions
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.15.0+f503bf610759c13f78cff9a3c01e91453185d2ed
Syntax
public IgnoreIfDefaultConvention(
	bool ignoreIfDefault
)

Parameters

ignoreIfDefault
Type: SystemBoolean
Whether to ignore default values during serialization.
See Also