AnonymousMethodValue 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.


The AnonymousMethodValue class represents an anonymous method or lambda expression.

[Serializable]
AnonymousMethodValue = public class(Value)


Namespace: Cirrus Values


Members

Method
Description
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

Property
Description
Body: StatementThe 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: List‹AnonymousMethodParameterParameters for this lambda
Result: IType InterfaceResult type of the body of the expression. Could be nil, if so, it is infered from the expression


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox