Class DelegateMemberMapConvention
- Namespace
- MongoDB.Bson.Serialization.Conventions
- Assembly
- MongoDB.Bson.dll
A member map convention that wraps a delegate.
public class DelegateMemberMapConvention : ConventionBase, IMemberMapConvention, IConvention
- Inheritance
-
DelegateMemberMapConvention
- Implements
- Inherited Members
- Extension Methods
Constructors
DelegateMemberMapConvention(string, Action<BsonMemberMap>)
Initializes a new instance of the DelegateMemberMapConvention class.
public DelegateMemberMapConvention(string name, Action<BsonMemberMap> action)
Parameters
name
stringThe name.
action
Action<BsonMemberMap>The delegate.
Methods
Apply(BsonMemberMap)
Applies a modification to the member map.
public void Apply(BsonMemberMap memberMap)
Parameters
memberMap
BsonMemberMapThe member map.