MongoDB.Bson.Serialization.Conventions NamespaceMongoDB C# Driver API Documentation
The various conventions used during serialization/deserialization of Bson data are represented by the types in the MongoDB.Bson.Serialization.Conventions namespace.
Classes

  ClassDescription
Public classAlwaysIgnoreExtraElementsConvention Obsolete.
Represents an ignore extra elements convention where extra elements are always ignored.
Public classAlwaysIgnoreIfDefaultConvention Obsolete.
Represents an ignore if default convention where default values are always ignored.
Public classAlwaysIgnoreIfNullConvention Obsolete.
Represents an ignore if null convention where nulls are always ignored.
Public classAlwaysSerializeDefaultValueConvention Obsolete.
Represents a serialize default value convention where default values are always serialized.
Public classAttributeConventionPack
Convention pack for applying attributes.
Public classCamelCaseElementNameConvention
A convention that sets the element name the same as the member name with the first character lower cased.
Public classConventionBase
Base class for a convention.
Public classConventionPack
A mutable pack of conventions.
Public classConventionProfile Obsolete.
Represents a set of conventions.
Public classConventionRegistry
Represents a registry of conventions.
Public classConventionRunner
Runs the conventions against a BsonClassMap and its BsonMemberMaps.
Public classDefaultConventionPack
Convention pack of defaults.
Public classDelegateClassMapConvention
A class map convention that wraps a delegate.
Public classDelegateMemberMapConvention
A member map convention that wraps a delegate.
Public classDelegatePostProcessingConvention
A post processing convention that wraps a delegate.
Public classEnumRepresentationConvention
A convention that allows you to set the Enum serialization representation
Public classHierarchicalDiscriminatorConvention
Represents a discriminator convention where the discriminator is an array of all the discriminators provided by the class maps of the root class down to the actual type.
Public classIgnoreExtraElementsConvention
A convention that sets whether to ignore extra elements encountered during deserialization.
Public classIgnoreIfDefaultConvention
A convention that sets whether to ignore default values during serialization.
Public classIgnoreIfNullConvention
A convention that sets whether to ignore nulls during serialization.
Public classLookupIdGeneratorConvention
A convention that looks up an id generator for the id member.
Public classMemberDefaultValueConvention
A convention that sets the default value for members of a given type.
Public classMemberNameElementNameConvention
A convention that sets the element name the same as the member name.
Public classMemberSerializationOptionsConvention
A convention that sets serialization options for members of a given type.
Public classNamedExtraElementsMemberConvention
A convention that finds the extra elements member by name (and that is also of type BsonDocument or an IDictionary<string, object>).
Public classNamedIdMemberConvention
A convention that finds the id member by name.
Public classNamedParameterCreatorMapConvention
A convention that uses the names of the creator parameters to find the matching members.
Public classNeverIgnoreExtraElementsConvention Obsolete.
Represents an ignore extra elements convention where extra elements are never ignored.
Public classNeverIgnoreIfDefaultConvention Obsolete.
Represents an ignore if default convention where default values are never ignored.
Public classNeverIgnoreIfNullConvention Obsolete.
Represents an ignore if null convention where nulls are never ignored.
Public classNeverSerializeDefaultValueConvention Obsolete.
Represents a serialize default value convention where default values are never serialized.
Public classNoIdMemberConvention
A convention that sets a class's IdMember to null.
Public classNullDefaultValueConvention Obsolete.
Represents a default value convention of null.
Public classNullSerializationOptionsConvention Obsolete.
Represents BSON serialiation options that use default values.
Public classPublicMemberFinderConvention Obsolete.
Represents a member finder convention where all public read/write fields and properties are serialized.
Public classReadWriteMemberFinderConvention
A convention that finds readable and writeable members and adds them to the class map.
Public classResetClassMapConvention
A convention that resets a class map (resetting any changes that earlier conventions may have applied).
Public classResetMemberMapsConvention
A convention that resets class members (resetting any changes that earlier conventions may have applied).
Public classScalarDiscriminatorConvention
Represents a discriminator convention where the discriminator is provided by the class map of the actual type.
Public classStandardDiscriminatorConvention
Represents the standard discriminator conventions (see ScalarDiscriminatorConvention and HierarchicalDiscriminatorConvention).
Public classStringObjectIdIdGeneratorConvention
A convention that sets the id generator for a string member with a BSON representation of ObjectId.
Public classTypeRepresentationSerializationOptionsConvention Obsolete.
Sets serialization options for a member of a given type.
Interfaces

  InterfaceDescription
Public interfaceIClassMapConvention
Represents a convention that applies to a BsonClassMap.
Public interfaceIConvention
Represents a convention.
Public interfaceIConventionPack
Represents a grouping of conventions.
Public interfaceICreatorMapConvention
Represents a convention that applies to a BsonCreatorMap.
Public interfaceIDefaultValueConvention Obsolete.
Represents a default value convention.
Public interfaceIDiscriminatorConvention
Represents a discriminator convention.
Public interfaceIElementNameConvention Obsolete.
Represents an element name convention.
Public interfaceIExtraElementsMemberConvention Obsolete.
Represents an extra elements member convention.
Public interfaceIIdGeneratorConvention Obsolete.
Represents an Id generator convention.
Public interfaceIIdMemberConvention Obsolete.
Represents an Id member convention.
Public interfaceIIgnoreExtraElementsConvention Obsolete.
Represents an ignore extra elements convention.
Public interfaceIIgnoreIfDefaultConvention Obsolete.
Represents an ignore if default convention.
Public interfaceIIgnoreIfNullConvention Obsolete.
Represents an ignore if null convention.
Public interfaceIMemberFinderConvention Obsolete.
Represents a member finder convention.
Public interfaceIMemberMapConvention
Represents a convention that applies to a BsonMemberMap.
Public interfaceIPostProcessingConvention
Represents a post processing convention that applies to a BsonClassMap.
Public interfaceISerializationOptionsConvention Obsolete.
Represents a BSON serialization options convention.
Public interfaceISerializeDefaultValueConvention Obsolete.
Represents a serialize default value convention.