Class DelegatePostProcessingConvention
- Namespace
- MongoDB.Bson.Serialization.Conventions
- Assembly
- MongoDB.Bson.dll
A post processing convention that wraps a delegate.
public class DelegatePostProcessingConvention : ConventionBase, IPostProcessingConvention, IConvention
- Inheritance
-
DelegatePostProcessingConvention
- Implements
- Inherited Members
- Extension Methods
Constructors
DelegatePostProcessingConvention(string, Action<BsonClassMap>)
Initializes a new instance of the DelegatePostProcessingConvention class.
public DelegatePostProcessingConvention(string name, Action<BsonClassMap> action)
Parameters
name
stringThe name.
action
Action<BsonClassMap>The delegate.
Methods
PostProcess(BsonClassMap)
Applies a post processing modification to the class map.
public void PostProcess(BsonClassMap classMap)
Parameters
classMap
BsonClassMapThe class map.