SumType<T1,T2>.TryGetSecond(T2) 方法

定义

尝试获取值作为第二个指定类型。

public:
 bool TryGetSecond([Runtime::InteropServices::Out] T2 % value);
public bool TryGetSecond (out T2 value);
member this.TryGetSecond : 'T2 -> bool
Public Function TryGetSecond (ByRef value As T2) As Boolean

参数

value
T2

指定类型中的值/>

返回

true 如果类型匹配

适用于