Builds a switch
statement.
Implements
Namespace: Metalama.Framework.Code.SyntaxBuilders
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public sealed class SwitchStatementBuilder : IStatementBuilder
Constructors
Name | Description |
---|---|
SwitchStatementBuilder(IExpression) | Initializes a new instance of the SwitchStatementBuilder class. |
Properties
Name | Description |
---|---|
SectionCount | Gets the number of sections in the |
Methods
Name | Description |
---|---|
AddCase(SwitchStatementLabel, IExpression?, IStatement, bool) | Add a |
AddCase(SwitchStatementLabel, IExpression?, IStatementList, bool) | Add a |
AddCase(SwitchStatementLabel, IStatement, bool) | Add a |
AddCase(SwitchStatementLabel, IStatementList, bool) | Add a |
AddDefault(IStatement, bool) | Add a |
AddDefault(IStatementList, bool) | Add a |
ToStatement() | Builds an IStatement from the current object. |