CxStatementSwitch

Description

sealed class Tinman.Core.Cx.Statements.CxStatementSwitch

Derived from

CxStatement abstract

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;
}

Public / Constructors

CxStatementSwitch


public constructor CxStatementSwitch → (2)

value in : CxExpression

[not-null]
See Value.

cases in : IBagConst<CxCase>

[not-null]
See Cases.

Creates a new instance of CxStatementSwitch.

Public / Attributes

Cases


public attribute Cases → (get)

value : IVector<CxCase>

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

Returns the switch case sections.

Value


public attribute Value → (get)

value : CxExpression

[not-null]
The value expression.

Returns the switch value expression.