AnonymousMethodValue Class
From The Oxygene Language Wiki
This is a Language topic
Feel free to add your notes to this topic below.
The AnonymousMethodValue class represents an anonymous method or lambda expression.
[Serializable] AnonymousMethodValue = public class(Value)
Namespace: Cirrus Values
Members
| | |
|---|---|
| constructor | Empty construtor |
| constructor(aBody: Statement; params aParameters: array of AnonymousMethodParameter) | Constructor that initializes properties of this class |
| constructor(aBody: Statement; aResult: IType; params aParameters: array of AnonymousMethodParameter) | Constructor that initializes properties of this class |
| constructor(aBody: Value; params aParameters: array of AnonymousMethodParameter) | Constructor that initializes properties of this class. The body is wrapped in an ExitStatement |
| constructor(aBody: Value; aResult: IType; params aParameters: array of AnonymousMethodParameter) | Constructor that initializes properties of this class. The body is wrapped in an ExitStatement |
Properties
| | |
|---|---|
| Body: Statement | The body for this anonymous method. For single expression lambdas, this will contain an expression wrapped in an ExitStatement |
| Kind: ValueKind | Always returns ValueKind.AnonymousMethod |
| Parameters: ListAnonymousMethodParameter | Parameters for this lambda |
| Result: IType Interface | Result type of the body of the expression. Could be nil, if so, it is infered from the expression |
See Also
- Cirrus
- External Links:
- Prism Aspects to Help with Monobjc Development (RemObjects Blogs)
- AnonymousParameterValue Class
- AnonymousResultValue Class
- AnonymousMethodParameter Class
- AnonymousMethodValue Class
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To