Method WithDefault
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
WithDefault(T)
Returns either the value of this optional parameter if it has a value, otherwise a default value.
public T WithDefault(T value)
Parameters
value
T
The default value.
Returns
T
Either the value of this optional parameter if it has a value, otherwise a default value.