Expression.NodeType Property


Gets the node type of this Expression.

 property System::Linq::Expressions::ExpressionType NodeType { System::Linq::Expressions::ExpressionType get(); };
public System.Linq.Expressions.ExpressionType NodeType { get; }
member this.NodeType : System.Linq.Expressions.ExpressionType
Public ReadOnly Property NodeType As ExpressionType

Property Value

One of the ExpressionType values.


The NodeType property provides a more specialized description of an Expression than just its derived type. For example, a BinaryExpression can be used to represent many different kinds of binary expressions, such as a division operation or a "greater than" operation. The NodeType property would describe these binary expressions as Divide and GreaterThan, respectively.

The static CLR type of the expression that the Expression object represents is represented by the Type property.

Applies to