ByteTransformHelperGetResultFromOtherTResult, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7 方法 (OperateResultTIn1, FuncTIn1, OperateResultTIn2, FuncTIn2, OperateResultTIn3, FuncTIn3, OperateResultTIn4, FuncTIn4, OperateResultTIn5, FuncTIn5, OperateResultTIn6, FuncTIn6, OperateResultTIn7, FuncTIn7, OperateResultTResult) |
使用指定的转换方法,来获取到实际的结果对象内容
命名空间:
HslCommunication.Core
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<TResult> GetResultFromOther<TResult, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7>(
OperateResult<TIn1> result,
Func<TIn1, OperateResult<TIn2>> trans1,
Func<TIn2, OperateResult<TIn3>> trans2,
Func<TIn3, OperateResult<TIn4>> trans3,
Func<TIn4, OperateResult<TIn5>> trans4,
Func<TIn5, OperateResult<TIn6>> trans5,
Func<TIn6, OperateResult<TIn7>> trans6,
Func<TIn7, OperateResult<TResult>> trans7
)
Public Shared Function GetResultFromOther(Of TResult, TIn1, TIn2, TIn3, TIn4, TIn5, TIn6, TIn7) (
result As OperateResult(Of TIn1),
trans1 As Func(Of TIn1, OperateResult(Of TIn2)),
trans2 As Func(Of TIn2, OperateResult(Of TIn3)),
trans3 As Func(Of TIn3, OperateResult(Of TIn4)),
trans4 As Func(Of TIn4, OperateResult(Of TIn5)),
trans5 As Func(Of TIn5, OperateResult(Of TIn6)),
trans6 As Func(Of TIn6, OperateResult(Of TIn7)),
trans7 As Func(Of TIn7, OperateResult(Of TResult))
) As OperateResult(Of TResult)
public:
generic<typename TResult, typename TIn1, typename TIn2, typename TIn3, typename TIn4, typename TIn5, typename TIn6, typename TIn7>
static OperateResult<TResult>^ GetResultFromOther(
OperateResult<TIn1>^ result,
Func<TIn1, OperateResult<TIn2>^>^ trans1,
Func<TIn2, OperateResult<TIn3>^>^ trans2,
Func<TIn3, OperateResult<TIn4>^>^ trans3,
Func<TIn4, OperateResult<TIn5>^>^ trans4,
Func<TIn5, OperateResult<TIn6>^>^ trans5,
Func<TIn6, OperateResult<TIn7>^>^ trans6,
Func<TIn7, OperateResult<TResult>^>^ trans7
)
static member GetResultFromOther :
result : OperateResult<'TIn1> *
trans1 : Func<'TIn1, OperateResult<'TIn2>> *
trans2 : Func<'TIn2, OperateResult<'TIn3>> *
trans3 : Func<'TIn3, OperateResult<'TIn4>> *
trans4 : Func<'TIn4, OperateResult<'TIn5>> *
trans5 : Func<'TIn5, OperateResult<'TIn6>> *
trans6 : Func<'TIn6, OperateResult<'TIn7>> *
trans7 : Func<'TIn7, OperateResult<'TResult>> -> OperateResult<'TResult>
参数
- result
- 类型:HslCommunicationOperateResultTIn1
原始的结果对象 - trans1
- 类型:SystemFuncTIn1, OperateResultTIn2
转换方法1,从类型TIn1转换拿到OperateResult的TIn2的泛型委托 - trans2
- 类型:SystemFuncTIn2, OperateResultTIn3
转换方法2,从类型TIn2转换拿到OperateResult的TIn3的泛型委托 - trans3
- 类型:SystemFuncTIn3, OperateResultTIn4
转换方法3,从类型TIn3转换拿到OperateResult的TIn4的泛型委托 - trans4
- 类型:SystemFuncTIn4, OperateResultTIn5
转换方法4,从类型TIn4转换拿到OperateResult的TIn5的泛型委托 - trans5
- 类型:SystemFuncTIn5, OperateResultTIn6
转换方法5,从类型TIn5转换拿到OperateResult的TIn6的泛型委托 - trans6
- 类型:SystemFuncTIn6, OperateResultTIn7
转换方法6,从类型TIn6转换拿到OperateResult的TIn7的泛型委托 - trans7
- 类型:SystemFuncTIn7, OperateResultTResult
转换方法7,从类型TIn7转换拿到OperateResult的TResult的泛型委托
类型参数
- TResult
- 结果类型
- TIn1
- 输入类型1
- TIn2
- 输入类型2
- TIn3
- 输入类型3
- TIn4
- 输入类型4
- TIn5
- 输入类型5
- TIn6
- 输入类型6
- TIn7
- 输入类型7
返回值
类型:
OperateResultTResult类型为TResult的对象
参见