Summary
Turns the type T into an option type.
- Namespace
- FunctionalSharp
.OptionTypes - Containing Type
- OptionExtensions
Syntax
public static IOption<T> ToOption<T>(this T value)
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
value | T | value to create an option type for. Can be null |
Return Value
Type | Description |
---|---|
IOption |