Table of Contents

Class MemberDeclarationNamedExpression

Namespace
TimeCockpit.Data.QueryLanguage.Syntax
Assembly
TimeCockpit.Data.dll

AST Node representing a member declaration named expression, e.g. in

From X In Timesheet Select New With { .ThreeTimesDurationOfHours = 3 * X.DurationInHours }

".ThreeTimesDurationOfHours = 3 * X.DurationInHours" is represented by an instance of this node.

public class MemberDeclarationNamedExpression : MemberDeclaration
Inheritance
Object
MemberDeclarationNamedExpression
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

MemberDeclarationNamedExpression(String, Expression)

Initializes a new instance of the MemberDeclarationNamedExpression class.

public MemberDeclarationNamedExpression(string memberName, Expression expression)

Parameters

memberName String

The name of the member being defined.

expression Expression

The expression producing the defined member.

Properties

Expression

Gets the expression producing the member value.

public Expression Expression { get; }

Property Value

Expression

MemberName

Gets the name of the member being defined.

public string MemberName { get; }

Property Value

String

Methods

Accept(Visitor)

public override Node Accept(Visitor visitor)

Parameters

visitor Visitor

The visitor to dispatch to.

Returns

Node

Returns the value returned by the call to VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression).