Share via


SumType<T1,T2>.TryGetSecond(T2) Method

Definition

Tries to get the value as the second specified type.

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

Parameters

value
T2

the value in the specified type/>

Returns

true if the type matches

Applies to