Delegate OptionDeconstructor<TOptional, TElement>
- Namespace
- PolyType.Abstractions
- Assembly
- PolyType.dll
Delegate deconstructing an optional type.
public delegate bool OptionDeconstructor<TOptional, TElement>(TOptional? optional, out TElement value)
Parameters
optionalTOptionalThe optional value to deconstruct.
valueTElementThe value potentially contained in
optional.
Returns
Type Parameters
TOptionalThe optional type to deconstruct.
TElementThe value encapsulated by the option type.