CaseValue Class
From The Oxygene Language Wiki
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
| | |
|---|---|
| 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
| | |
|---|---|
| Default: Value | Value in case none of the items in Values matches (else) |
| Input: Value | The condition for this case expression |
| Kind: ValueKind; override; | Value kind. Always returns ValueKind.Case |
| ResultType: IType | Result 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
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
- CaseValueItem Class
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To