Struct Optional
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
Represents an optional parameter that might or might not have a value.
public struct Optional<T>
Type Parameters
T
The type of the parameter.
Inherited Members
Constructors
Initializes a new instance of the Optional struct with a value.
Properties
Gets a value indicating whether the optional parameter has a value.
Gets the value of the optional parameter.
Methods
Returns a value indicating whether this optional parameter contains a value that is not equal to an existing value.
Returns either the value of this optional parameter if it has a value, otherwise a default value.
Operators
Performs an implicit conversion from to an Optional with a value.