Method ToMaybe
ToMaybe<T>(Nullable<T>)
Converts a
Declaration
public static Maybe<T> ToMaybe<T>(this T? source)where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<T> | source | A |
Returns
| Type | Description |
|---|---|
| Maybe<T> | A Maybe<T> instance, either an empty instance if |
Type Parameters
| Name | Description |
|---|---|
| T | The type of value used in both the nullable and maybe instances. |