SumType<T1,T2,T3>.Explicit Operator
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Explicit(SumType<T1,T2,T3> to SumType<T1,T2>) | |
Explicit(SumType<T1,T2,T3> to T1) |
Attempts to cast an instance of SumType<T1,T2,T3> to an instance of |
Explicit(SumType<T1,T2,T3> to T2) |
Attempts to cast an instance of SumType<T1,T2> to an instance of |
Explicit(SumType<T1,T2,T3> to T3) |
Attempts to cast an instance of SumType<T1,T2,T3> to an instance of |
Explicit(SumType<T1,T2,T3> to SumType<T1,T2>)
public:
static explicit operator Microsoft::VisualStudio::LanguageServer::Protocol::SumType<T1, T2>(Microsoft::VisualStudio::LanguageServer::Protocol::SumType<T1, T2, T3> sum);
public static explicit operator Microsoft.VisualStudio.LanguageServer.Protocol.SumType<T1,T2> (Microsoft.VisualStudio.LanguageServer.Protocol.SumType<T1,T2,T3> sum);
static member op_Explicit : Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3> -> Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2>
Public Shared Narrowing Operator CType (sum As SumType(Of T1, T2, T3)) As SumType(Of T1, T2)
Parameters
Returns
Applies to
Explicit(SumType<T1,T2,T3> to T1)
Attempts to cast an instance of SumType<T1,T2,T3> to an instance of T1
.
public:
static explicit operator T1(Microsoft::VisualStudio::LanguageServer::Protocol::SumType<T1, T2, T3> sum);
public static explicit operator T1 (Microsoft.VisualStudio.LanguageServer.Protocol.SumType<T1,T2,T3> sum);
static member op_Explicit : Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3> -> 'T1
Public Shared Narrowing Operator CType (sum As SumType(Of T1, T2, T3)) As T1
Parameters
Instance to unwrap.
Returns
Exceptions
Thrown if this instance of SumType<T1,T2,T3> does not contain an instance of T1
.
Applies to
Explicit(SumType<T1,T2,T3> 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, T3> sum);
public static explicit operator T2 (Microsoft.VisualStudio.LanguageServer.Protocol.SumType<T1,T2,T3> sum);
static member op_Explicit : Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3> -> 'T2
Public Shared Narrowing Operator CType (sum As SumType(Of T1, T2, T3)) As T2
Parameters
Instance to unwrap.
Returns
Exceptions
Thrown if this instance of SumType<T1,T2,T3> does not contain an instance of T2
.
Applies to
Explicit(SumType<T1,T2,T3> to T3)
Attempts to cast an instance of SumType<T1,T2,T3> to an instance of T3
.
public:
static explicit operator T3(Microsoft::VisualStudio::LanguageServer::Protocol::SumType<T1, T2, T3> sum);
public static explicit operator T3 (Microsoft.VisualStudio.LanguageServer.Protocol.SumType<T1,T2,T3> sum);
static member op_Explicit : Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3> -> 'T3
Public Shared Narrowing Operator CType (sum As SumType(Of T1, T2, T3)) As T3
Parameters
Instance to unwrap.
Returns
Exceptions
Thrown if this instance of SumType<T1,T2,T3> does not contain an instance of T3
.