次の方法で共有


SumType<T1,T2> Constructors

Definition

Overloads

SumType<T1,T2>(T1)

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

SumType<T1,T2>(T2)

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

SumType<T1,T2>(T1)

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

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

Parameters

val
T1

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

Applies to

SumType<T1,T2>(T2)

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

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

Parameters

val
T2

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

Applies to