CxCase

Description

sealed class Tinman.Core.Cx.Statements.CxCase

Represents a case section in a switch statement:

case 1:
case 2:
  a;

default:
  break;

ICxStatementsContainer.Statements returns the switch case statements.

Public / Constructors

Cx​Case


public constructor CxCase → (2)

value in : CxExpression

See Value.

statements opt : IBagConst<CxStatement> = null

The switch case statement list or null for an empty list. See ICxStatementsContainer.Statements.

Creates a new instance of CxCase.

Public / Attributes

Value


[Constant]
public attribute Value → (get)

value : CxExpression

The switch case value or null iff this is the default case.

Returns the switch case value.