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
stringThe 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
stringThe member name.
defaultValue
TThe default value.
Returns
- T
The value.
Type Parameters
T
The type of the value.