Share via


SumType<T1,T2,T3,T4>.TryGetFirst(T1) Method

Definition

Tries to get the value as the first specified type.

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

Parameters

value
T1

the value in the specified type/>

Returns

true if the type matches

Applies to