Class MemberDeclarationNamedExpression
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.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.QueryLanguage.Syntax
Assembly: TimeCockpit.Data.dll
Syntax
public class MemberDeclarationNamedExpression : MemberDeclaration
Constructors
MemberDeclarationNamedExpression(String, Expression)
Initializes a new instance of the MemberDeclarationNamedExpression class.
Declaration
public MemberDeclarationNamedExpression(string memberName, Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.String | memberName | The name of the member being defined. |
Expression | expression | The expression producing the defined member. |
Properties
Expression
Gets the expression producing the member value.
Declaration
public Expression Expression { get; }
Property Value
Type | Description |
---|---|
Expression |
MemberName
Gets the name of the member being defined.
Declaration
public string MemberName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Accept(Visitor)
Dispatches to the correct VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression).
Declaration
public override Node Accept(Visitor visitor)
Parameters
Type | Name | Description |
---|---|---|
Visitor | visitor | The visitor to dispatch to. |
Returns
Type | Description |
---|---|
Node | Returns the value returned by the call to VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression). |