Click or drag to resize

OptionalCreateT Method

Creates an instance of an optional parameter with a value.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.6.0+Branch.origin/v2.6.x.Sha.593796a7b35dc59243383bcc684de296a5468f2e
Syntax
public static Optional<T> Create<T>(
	T value
)

Parameters

value
Type: T
The value.

Type Parameters

T
The type of the optional parameter.

Return Value

Type: OptionalT
An instance of an optional parameter with a value.
Remarks
This helper method can be used when the implicit conversion doesn't work (due to compiler limitations).
See Also