Method SetShouldSerializeMethod
- Namespace
- MongoDB.Bson.Serialization
- Assembly
- MongoDB.Bson.dll
SetShouldSerializeMethod(Func<object, bool>)
Sets the method that will be called to determine whether the member should be serialized.
public BsonMemberMap SetShouldSerializeMethod(Func<object, bool> shouldSerializeMethod)
Parameters
Returns
- BsonMemberMap
The member map.