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