Table of Contents

Class AnonymousMethodExpression

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

[async] delegate(Parameters) {Body}

public class AnonymousMethodExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
AnonymousMethodExpression
Implements
Inherited Members
Extension Methods

Constructors

AnonymousMethodExpression()

public AnonymousMethodExpression()

AnonymousMethodExpression(BlockStatement, params ParameterDeclaration[])

public AnonymousMethodExpression(BlockStatement body, params ParameterDeclaration[] parameters)

Parameters

body BlockStatement
parameters ParameterDeclaration[]

AnonymousMethodExpression(BlockStatement, IEnumerable<ParameterDeclaration>)

public AnonymousMethodExpression(BlockStatement body, IEnumerable<ParameterDeclaration> parameters = null)

Parameters

body BlockStatement
parameters IEnumerable<ParameterDeclaration>

Fields

AsyncModifierRole

public static readonly TokenRole AsyncModifierRole

Field Value

TokenRole

DelegateKeywordRole

public static readonly TokenRole DelegateKeywordRole

Field Value

TokenRole

Properties

Body

public BlockStatement Body { get; set; }

Property Value

BlockStatement

DelegateToken

public CSharpTokenNode DelegateToken { get; }

Property Value

CSharpTokenNode

HasParameterList

public bool HasParameterList { get; set; }

Property Value

bool

IsAsync

public bool IsAsync { get; set; }

Property Value

bool

LParToken

public CSharpTokenNode LParToken { get; }

Property Value

CSharpTokenNode

Parameters

public AstNodeCollection<ParameterDeclaration> Parameters { get; }

Property Value

AstNodeCollection<ParameterDeclaration>

RParToken

public CSharpTokenNode RParToken { get; }

Property Value

CSharpTokenNode

Methods

AcceptVisitor(IAstVisitor)

public override void AcceptVisitor(IAstVisitor visitor)

Parameters

visitor IAstVisitor

AcceptVisitor<T>(IAstVisitor<T>)

public override T AcceptVisitor<T>(IAstVisitor<T> visitor)

Parameters

visitor IAstVisitor<T>

Returns

T

Type Parameters

T

AcceptVisitor<T, S>(IAstVisitor<T, S>, T)

public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)

Parameters

visitor IAstVisitor<T, S>
data T

Returns

S

Type Parameters

T
S

DoMatch(AstNode, Match)

protected override bool DoMatch(AstNode other, Match match)

Parameters

other AstNode
match Match

Returns

bool