CaseValue Class

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.


A case value is the Cirrus equivalent of the Case Expressions in Delphi Prism. It is a conditional expression of which only 1 or 0 branches will be executed, depending on the value.

[Serializable]
CaseValue = public class(Value)


Namespace: Cirrus Values


Members

Method
Description
constructor Empty constructor; sets none of the properties
constructor(ResultType: IType; aInput, aDefault: Value; params aValues: array of CaseValueItem); Constructor that initializes the properties listed below


Properties

Property
Description
Default: ValueValue in case none of the items in Values matches (else)
Input: ValueThe condition for this case expression
Kind: ValueKind; override; Value kind. Always returns ValueKind.Case
ResultType: ITypeResult type of this case statement; optional; if not set, it is infered from the result values
Values: List<CaseValueItem>Elements in the case expression


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox