Method WithDefault
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
TThe default value.
Returns
- T
Either the value of this optional parameter if it has a value, otherwise a default value.