Partager via


SumType<T1,T2,T3> Constructors

Definition

Overloads

SumType<T1,T2,T3>(T1)

Initializes a new instance of the SumType<T1,T2,T3> struct containing a T1.

SumType<T1,T2,T3>(T2)

Initializes a new instance of the SumType<T1,T2,T3> struct containing a T2.

SumType<T1,T2,T3>(T3)

Initializes a new instance of the SumType<T1,T2,T3> struct containing a T3.

SumType<T1,T2,T3>(T1)

Initializes a new instance of the SumType<T1,T2,T3> struct containing a T1.

public:
 SumType(T1 val);
public SumType (T1 val);
new Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3> : 'T1 -> Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3>
Public Sub New (val As T1)

Parameters

val
T1

The value to store in the SumType<T1,T2,T3>.

Applies to

SumType<T1,T2,T3>(T2)

Initializes a new instance of the SumType<T1,T2,T3> struct containing a T2.

public:
 SumType(T2 val);
public SumType (T2 val);
new Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3> : 'T2 -> Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3>
Public Sub New (val As T2)

Parameters

val
T2

The value to store in the SumType<T1,T2,T3>.

Applies to

SumType<T1,T2,T3>(T3)

Initializes a new instance of the SumType<T1,T2,T3> struct containing a T3.

public:
 SumType(T3 val);
public SumType (T3 val);
new Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3> : 'T3 -> Microsoft.VisualStudio.LanguageServer.Protocol.SumType<'T1, 'T2, 'T3>
Public Sub New (val As T3)

Parameters

val
T3

The value to store in the SumType<T1,T2,T3>.

Applies to