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
memberNamestringThe member name.
Returns
- T
The value.
Type Parameters
TThe type of the value.
GetValue<T>(string, T)
Gets the value from the backing document.
protected T GetValue<T>(string memberName, T defaultValue)
Parameters
memberNamestringThe member name.
defaultValueTThe default value.
Returns
- T
The value.
Type Parameters
TThe type of the value.