Dela via


SyntaxGenerator.SwitchStatement Method

Definition

Overloads

SwitchStatement(SyntaxNode, SyntaxNode[])

Creates a switch statement that branches to individual sections based on the value of the specified expression.

SwitchStatement(SyntaxNode, IEnumerable<SyntaxNode>)

Creates a switch statement that branches to individual sections based on the value of the specified expression.

SwitchStatement(SyntaxNode, SyntaxNode[])

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates a switch statement that branches to individual sections based on the value of the specified expression.

public:
 Microsoft::CodeAnalysis::SyntaxNode ^ SwitchStatement(Microsoft::CodeAnalysis::SyntaxNode ^ expression, ... cli::array <Microsoft::CodeAnalysis::SyntaxNode ^> ^ sections);
public Microsoft.CodeAnalysis.SyntaxNode SwitchStatement (Microsoft.CodeAnalysis.SyntaxNode expression, params Microsoft.CodeAnalysis.SyntaxNode[] sections);
member this.SwitchStatement : Microsoft.CodeAnalysis.SyntaxNode * Microsoft.CodeAnalysis.SyntaxNode[] -> Microsoft.CodeAnalysis.SyntaxNode
Public Function SwitchStatement (expression As SyntaxNode, ParamArray sections As SyntaxNode()) As SyntaxNode

Parameters

expression
SyntaxNode
sections
SyntaxNode[]

Returns

Applies to

SwitchStatement(SyntaxNode, IEnumerable<SyntaxNode>)

Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs
Source:
SyntaxGenerator.cs

Creates a switch statement that branches to individual sections based on the value of the specified expression.

public:
 abstract Microsoft::CodeAnalysis::SyntaxNode ^ SwitchStatement(Microsoft::CodeAnalysis::SyntaxNode ^ expression, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxNode ^> ^ sections);
public abstract Microsoft.CodeAnalysis.SyntaxNode SwitchStatement (Microsoft.CodeAnalysis.SyntaxNode expression, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxNode> sections);
abstract member SwitchStatement : Microsoft.CodeAnalysis.SyntaxNode * seq<Microsoft.CodeAnalysis.SyntaxNode> -> Microsoft.CodeAnalysis.SyntaxNode
Public MustOverride Function SwitchStatement (expression As SyntaxNode, sections As IEnumerable(Of SyntaxNode)) As SyntaxNode

Parameters

expression
SyntaxNode

Returns

Applies to