Combines two value results using a function that combines their values, where the type of the result value is the same as the type of the first value result.
'Declaration
<NotNullAttribute()>
Public Overloads Shared Function Combine
(Of ,)( _
ByVal As ValueResult(Of TFirstValue), _
ByVal As ValueResult, _
ByVal As Func(Of TFirstValue,Object,TResultValue) _
) As ValueResult(Of TResultValue)
'Usage
Dim first As ValueResult(Of TFirstValue)
Dim second As ValueResult
Dim combineValuesFunction As Func(Of TFirstValue,Object,TResultValue)
Dim value As ValueResult(Of TResultValue)
value = ValueResult.Combine(Of TFirstValue, TResultValue)(first, second, combineValuesFunction)
Parameters
- first
The value of this parameter cannot be null
(Nothing
in Visual Basic).
- second
The value of this parameter cannot be null
(Nothing
in Visual Basic).
- combineValuesFunction
The value of this parameter cannot be null
(Nothing
in Visual Basic).
Type Parameters
- TFirstValue
- The type of value of the first value result.
- TResultValue
- The type of value of the resulting value result.
Return Value
This method never returns null
(Nothing
in Visual Basic).
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also