Table of Contents

Class MethodDeclaration

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll
public class MethodDeclaration : EntityDeclaration, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
MethodDeclaration
Implements
Inherited Members
Extension Methods

Constructors

MethodDeclaration()

public MethodDeclaration()

Properties

Body

public BlockStatement Body { get; set; }

Property Value

BlockStatement

Constraints

public AstNodeCollection<Constraint> Constraints { get; }

Property Value

AstNodeCollection<Constraint>

IsExtensionMethod

public bool IsExtensionMethod { get; }

Property Value

bool

LParToken

public CSharpTokenNode LParToken { get; }

Property Value

CSharpTokenNode

Parameters

public AstNodeCollection<ParameterDeclaration> Parameters { get; }

Property Value

AstNodeCollection<ParameterDeclaration>

PrivateImplementationType

Gets/Sets the type reference of the interface that is explicitly implemented. Null node if this member is not an explicit interface implementation.

public AstType PrivateImplementationType { get; set; }

Property Value

AstType

RParToken

public CSharpTokenNode RParToken { get; }

Property Value

CSharpTokenNode

SymbolKind

public override SymbolKind SymbolKind { get; }

Property Value

SymbolKind

TypeParameters

public AstNodeCollection<TypeParameterDeclaration> TypeParameters { get; }

Property Value

AstNodeCollection<TypeParameterDeclaration>

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