Table of Contents

Method TryGetValueForMember

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

TryGetValueForMember(T, string, out object)

Tries to get the value for a member. Returns true if the member should be serialized.

protected abstract bool TryGetValueForMember(T document, string memberName, out object value)

Parameters

document T

The document.

memberName string

Name of the member.

value object

The value.

Returns

bool

true if the member should be serialized; otherwise false.