Table of Contents

Method GetValue

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

GetValue<T>(string)

Gets the value from the backing document.

protected T GetValue<T>(string memberName)

Parameters

memberName string

The member name.

Returns

T

The value.

Type Parameters

T

The type of the value.

GetValue<T>(string, T)

Gets the value from the backing document.

protected T GetValue<T>(string memberName, T defaultValue)

Parameters

memberName string

The member name.

defaultValue T

The default value.

Returns

T

The value.

Type Parameters

T

The type of the value.