StevanFreeborn.Options
Provides factory methods for creating .
Creates an option with the specified value.
The type of the value.
The value.
An with the specified value.
Creates an empty option.
The type of the value.
An empty .
Creates an option from the specified value, returning None if the value is null.
The type of the value.
The value.
An with the value if not null, otherwise None.
Converts a value to an .
The type of the value.
The value.
An .
Represents an optional value that may or may not be present.
The type of the value.
Gets a value indicating whether the option has a value.
Gets a value indicating whether the option is empty.
Gets the value of the option.
Thrown when accessing Value on a None option.
Implicitly converts a value to an .
The value to convert.
Deconstructs the option into its components.
Indicates whether the option has a value.
The value of the option.
Maps the value to a new type if the option has a value.
The new type.
The function to map the value.
A new with the mapped value if Some, otherwise None.
Thrown when mapper is null.
Binds to a new option if the current option has a value.
The new option type.
The function to bind to on Some.
The result of the binder function if Some, otherwise None.
Thrown when binder is null.
Matches the option and returns a value based on whether it has a value.
The type of the result.
The function to execute on Some.
The function to execute on None.
The result of the appropriate function.
Thrown when onSome or onNone is null.
Matches the option and executes the appropriate action.
The action to execute on Some.
The action to execute on None.
Thrown when onSome or onNone is null.
Filters the option based on the specified predicate.
The predicate to filter with.
The current option if Some and the predicate is met, otherwise None.
Thrown when predicate is null.
Gets the value of the option if Some, otherwise the specified default value.
The default value.
The value if Some, otherwise the default value.
Gets the value of the option if Some, otherwise the result of the specified factory function.
The factory function to provide the default value.
The value if Some, otherwise the result of the factory function.
Thrown when factory is null.
Returns the current option if Some, otherwise the result of the specified factory function.
The factory function to provide the fallback option.
The current option if Some, otherwise the result of the factory function.
Thrown when factory is null.
Provides async extension methods for .
Maps the value to a new type asynchronously if the option has a value.
The type of the value.
The new type.
The option.
The async function to map the value.
A task containing a new with the mapped value if Some, otherwise None.
Thrown when option or mapper is null.
Binds to a new async result if the current option has a value.
The type of the value.
The new result type.
The option.
The async function to bind to on Some.
A task containing the result of the binder function if Some, otherwise None.
Thrown when option or binder is null.
Matches the option asynchronously and returns a value based on whether it has a value.
The type of the value.
The type of the result.
The option.
The async function to execute on Some.
The async function to execute on None.
A task containing the result of the appropriate function.
Thrown when option, onSome, or onNone is null.
Filters the option asynchronously based on the specified predicate.
The type of the value.
The option.
The async predicate to filter with.
A task containing the current option if Some and the predicate is met, otherwise None.
Thrown when option or predicate is null.
Returns the current option if Some, otherwise the result of the specified async factory function.
The type of the value.
The option.
The async factory function to provide the fallback option.
A task containing the current option if Some, otherwise the result of the factory function.
Thrown when option or factory is null.