Method MapOrNull
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
MapOrNull<TOut>(Func<T, TOut>)
public Optional<TOut> MapOrNull<TOut>(Func<T, TOut> mapper)
Parameters
mapper
Func<T, TOut>The function that does the mapping of the non-null
T
.
Returns
- Optional<TOut>
The mapped value.
Type Parameters
TOut
The type to map to.