NullableReadOnlySpanTMapTResult(NullableReadOnlySpanTMapSpanFuncTResult) Method
Maps a
NullableReadOnlySpanT to another value by applying a function to the
contained value, or returns an empty value if there is no value.
Namespace: Ookii.CommonAssembly: Ookii.Common (in Ookii.Common.dll) Version: 1.0.0+7c2900b8a16cd8ae46bdd79d8f105034712c5fa3
public NullableSpan<TResult> Map<TResult>(
NullableReadOnlySpanTMapSpanFunc<TResult> mapFunc
)
Public Function Map(Of TResult) (
mapFunc As NullableReadOnlySpanTMapSpanFunc(Of TResult)
) As NullableSpan(Of TResult)
Dim instance As NullableReadOnlySpan
Dim mapFunc As NullableReadOnlySpanTMapSpanFunc(Of TResult)
Dim returnValue As NullableSpan(Of TResult)
returnValue = instance.Map(mapFunc)
public:
generic<typename TResult>
NullableSpan<TResult> Map(
NullableReadOnlySpanTMapSpanFunc<TResult>^ mapFunc
)
- mapFunc NullableReadOnlySpanTMapSpanFuncTResult
- The function to apply to the contained value.
- TResult
-
The type of the items in the resulting NullableSpanT.
NullableSpanTResult
If the
HasValue property is
, the result of applying
mapFunc to the
Value property; otherwise, an empty
NullableReadOnlySpanT.
The function mapFunc is only called if the HasValue
property is .