点击或拖拽改变大小

OperateResultConvertT1, T2 方法 (T1, T2)

将当前的结果对象转换到指定泛型的结果类对象,如果当前结果为失败,则返回指定泛型的失败结果类对象
Convert the current result object to the result class object of the specified generic type, if the current result is a failure, then return the result class object of the specified generic type failure

命名空间:  HslCommunication
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public OperateResult<T1, T2> Convert<T1, T2>(
	T1 content1,
	T2 content2
)

参数

content1
类型:T1
如果操作成功将赋予的结果内容一
content2
类型:T2
如果操作成功将赋予的结果内容二

类型参数

T1
泛型参数一
T2
泛型参数二

返回值

类型:OperateResultT1, T2
最终的结果类对象
参见