SumType<T1,T2> Constructors
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
SumType<T1,T2>(T1) |
Initializes a new instance of the SumType<T1,T2> struct containing a |
SumType<T1,T2>(T2) |
Initializes a new instance of the SumType<T1,T2> struct containing a |
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>.