'Declaration
<NotNullAttribute()> Public Function SelectValue(Of TOutput)( _ ByVal valueSelector As Func(Of Object,TOutput) _ ) As ValueResult(Of TOutput)
'Usage
Dim instance As ValueResult Dim valueSelector As Func(Of Object,TOutput) Dim value As ValueResult(Of TOutput) value = instance.SelectValue(Of TOutput)(valueSelector)
[NotNull()] public ValueResult<TOutput> SelectValue<TOutput>( Func<object,TOutput> valueSelector )
[NotNull()] public: ValueResult<TOutput^>^ SelectValuegeneric<typename TOutput> ( Func<Object^,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 OpcLabs.BaseLib.OperationModel.Generic.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 OpcLabs.BaseLib.OperationModel.Generic.ValueResult<T> representing the same failure is returned.