'Declaration
<NotNullAttribute()> Public Overloads Function SelectValue(Of TOutput)( _ ByVal valueSelector As Func(Of T,TOutput) _ ) As ValueResult(Of TOutput)
'Usage
Dim instance As ValueResult(Of T) Dim valueSelector As Func(Of T,TOutput) Dim value As ValueResult(Of TOutput) value = instance.SelectValue(Of TOutput)(valueSelector)
[NotNull()] public ValueResult<TOutput> SelectValue<TOutput>( Func<T,TOutput> valueSelector )
[NotNull()] public: ValueResult<TOutput^>^ SelectValuegeneric<typename TOutput> ( Func<T^,TOutput^>^ valueSelector )
Parameters
- valueSelector
- A transform function to apply to the value.
Type Parameters
- TOutput
- The type of the value returned by valueSelector.
Return Value
A ValueResult<T> where the value is transformed using the valueSelector transform function, if the value result represents a success. If the value result represents a failure, a ValueResult<T> representing the same failure is returned.