Class ConventionPack
- Namespace
- MongoDB.Bson.Serialization.Conventions
- Assembly
- MongoDB.Bson.dll
A mutable pack of conventions.
- Inheritance
-
Convention
Pack
- Implements
- Inherited Members
- Extension Methods
Constructors
- Convention
Pack() Initializes a new instance of the Convention
Pack class.
Properties
- Conventions
Gets the conventions.
Methods
- Add(IConvention)
Adds the specified convention.
- AddClassMapConvention(string, Action<BsonClassMap>)
Adds a class map convention created using the specified action upon a class map.
- AddMemberMapConvention(string, Action<BsonMemberMap>)
Adds a member map convention created using the specified action upon a member map.
- AddPostProcessingConvention(string, Action<BsonClassMap>)
Adds a post processing convention created using the specified action upon a class map.
- AddRange(IEnumerable<IConvention>)
Adds a range of conventions.
- Append(IConvention
Pack) Appends the conventions in another pack to the end of this pack.
- Get
Enumerator() Gets an enumerator for the conventions.
- Insert
After(string, IConvention) Inserts the convention after another convention specified by the name.
- Insert
Before(string, IConvention) Inserts the convention before another convention specified by the name.
- Remove(string)
Removes the named convention.