c# - Different ways to parse / visit Expressions when traversing -
Expression is a basic question about parsing trees.
Is there any difference in using the statement from determining the node type of an expression, and accordingly handling it, versus the expression, do different visitor methods?
This is also the correct way to send:
Travel member of protected override expression (Member Feedback Me) {If (m.Expression.NodeType == Expression Type. Constant) {Expression E = (M. EXPRESSION as Constant Express); This.Visit (e); // Discriptions to VisitConstant ()? }} versus:
Protected Override Expression Member (Member Experiment M) {if (m.Expression.NodeType == ExpressionType.Constant) {/ To handle specific code /}} By the way it is in the context of parsing the following:
dbContext.Products.Where (x = Gt; X.id == user.ProductID). ANAnemerable () // user.FooID is 'Member intent' The connection between the node type and what is the type of expression just? For example, I have seen that nodtaps, which are not in the most detailed visitor methods, is it correct? Some expression types, such as MemberInit category and associated ExpressionType
enumerated values, whereas the class is more common with others and more related to the one from expression type , such as BinaryExpression (Can be add , divide , etc.).
Comments
Post a Comment