SumType<T1,T2>.Explicit Operator

Definition

Overloads

Explicit(SumType<T1,T2> to T2)

Attempts to cast an instance of SumType<T1,T2> to an instance of T2.

Explicit(SumType<T1,T2> to T1)

Attempts to cast an instance of SumType<T1,T2> to an instance of T1.

Explicit(SumType<T1,T2> to T2)

Attempts to cast an instance of SumType<T1,T2> to an instance of T2.

public:
 static explicit operator T2(Microsoft::VisualStudio::LanguageServer::Protocol::SumType<T1, T2> sum);
public static explicit operator T2 (Microsoft.VisualStudio.LanguageServer.Protocol.SumType<T1,T2> sum);
static member op_Explicit : Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2> -> 'T2
Public Shared Narrowing Operator CType (sum As SumType(Of T1, T2)) As T2

Parameters

sum
SumType<T1,T2>

Instance to unwrap.

Returns

T2

Exceptions

Thrown if this instance of SumType<T1,T2> does not contain an instance of T2.

Applies to

Explicit(SumType<T1,T2> to T1)

Attempts to cast an instance of SumType<T1,T2> to an instance of T1.

public:
 static explicit operator T1(Microsoft::VisualStudio::LanguageServer::Protocol::SumType<T1, T2> sum);
public static explicit operator T1 (Microsoft.VisualStudio.LanguageServer.Protocol.SumType<T1,T2> sum);
static member op_Explicit : Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2> -> 'T1
Public Shared Narrowing Operator CType (sum As SumType(Of T1, T2)) As T1

Parameters

sum
SumType<T1,T2>

Instance to unwrap.

Returns

T1

Exceptions

Thrown if this instance of SumType<T1,T2> does not contain an instance of T1.

Applies to