Method GetValue
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Bson.dll
GetValue(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(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.