CxStatementSwitch

Description

sealed class Tinman.Core.Cx.Statements.CxStatementSwitch

Derived from

CxStatement abstract
ICxExpressionContainer

A statement that selectively executes a statement list, based on a choice of values:

switch (a)
{
  case 1:
  case 2:
    break;

  default:
    a = 1;
    break;
}

ICxExpressionContainer.Expression returns the switch value expression.

Public / Constructors

Cx​Statement​Switch


public constructor CxStatementSwitch → (2)

expression in : CxExpression

[not-null]
See ICxExpressionContainer.Expression.

cases in : IBagConst<CxCase>

[not-null]
See Cases.

Creates a new instance of CxStatementSwitch.

Public / Attributes

Cases


[Constant]
public attribute Cases → (get)

value : IVectorConst<CxCase>

[not-null]
The switch case sections, including the optional default section.

Returns the switch case sections.