Method Create
Create<T>(T)
Creates an instance of an optional parameter with a value.
public static Optional<T> Create<T>(T value)
Parameters
value
TThe value.
Returns
- Optional<T>
An instance of an optional parameter with a value.
Type Parameters
T
The type of the optional parameter.
Remarks
This helper method can be used when the implicit conversion doesn't work (due to compiler limitations).