Class MemberDeclarationNamedExpression
- 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
-
ObjectMemberDeclarationNamedExpression
- 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
memberNameStringThe name of the member being defined.
expressionExpressionThe expression producing the defined member.
Properties
Expression
Gets the expression producing the member value.
public Expression Expression { get; }
Property Value
MemberName
Gets the name of the member being defined.
public string MemberName { get; }
Property Value
- String
Methods
Accept(Visitor)
Dispatches to the correct VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression).
public override Node Accept(Visitor visitor)
Parameters
visitorVisitorThe visitor to dispatch to.
Returns
- Node
Returns the value returned by the call to VisitMemberDeclarationNamedExpression(MemberDeclarationNamedExpression).