다음을 통해 공유


SumType<T1,T2,T3,T4>.Explicit Operator

Definition

Overloads

Explicit(SumType<T1,T2,T3,T4> to SumType<T1,T2,T3>)
Explicit(SumType<T1,T2,T3,T4> to SumType<T1,T2>)
Explicit(SumType<T1,T2,T3,T4> to T1)

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

Explicit(SumType<T1,T2,T3,T4> to T2)

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

Explicit(SumType<T1,T2,T3,T4> to T3)

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

Explicit(SumType<T1,T2,T3,T4> to T4)

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

Explicit(SumType<T1,T2,T3,T4> to SumType<T1,T2,T3>)

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

Parameters

Returns

Applies to

Explicit(SumType<T1,T2,T3,T4> to SumType<T1,T2>)

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

Parameters

Returns

Applies to

Explicit(SumType<T1,T2,T3,T4> to T1)

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

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

Parameters

sum
SumType<T1,T2,T3,T4>

Instance to unwrap.

Returns

T1

Exceptions

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

Applies to

Explicit(SumType<T1,T2,T3,T4> to T2)

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

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

Parameters

sum
SumType<T1,T2,T3,T4>

Instance to unwrap.

Returns

T2

Exceptions

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

Applies to

Explicit(SumType<T1,T2,T3,T4> to T3)

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

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

Parameters

sum
SumType<T1,T2,T3,T4>

Instance to unwrap.

Returns

T3

Exceptions

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

Applies to

Explicit(SumType<T1,T2,T3,T4> to T4)

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

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

Parameters

sum
SumType<T1,T2,T3,T4>

Instance to unwrap.

Returns

T4

Exceptions

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

Applies to