Table of Contents

Class NamedExpression

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

name = expression This isn't the same as 'assign' even though it has the same syntax. This expression is used in object initializers and for named attribute arguments [Attr(FieldName = value)].

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

Constructors

NamedExpression()

public NamedExpression()

NamedExpression(string, Expression)

public NamedExpression(string name, Expression expression)

Parameters

name string
expression Expression

Properties

AssignToken

public CSharpTokenNode AssignToken { get; }

Property Value

CSharpTokenNode

Expression

public Expression Expression { get; set; }

Property Value

Expression

Name

public string Name { get; set; }

Property Value

string

NameToken

public Identifier NameToken { get; set; }

Property Value

Identifier

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