Table of Contents

Method WithDefault

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Core.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.