Class ExpressionTreeNode
Base class for expression tree nodes.
Inheritance
Implements
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public abstract class ExpressionTreeNode : Object, IEquatable<ExpressionTreeNode>
Constructors
ExpressionTreeNode(ExpressionTreeNodeType)
Creates a new expression tree node of the specified node type.
Declaration
protected ExpressionTreeNode(ExpressionTreeNodeType nodeType)
Parameters
Type | Name | Description |
---|---|---|
ExpressionTreeNodeType | nodeType | Type of the expression tree node. |
Properties
NodeType
Gets the type of the expression tree node.
Declaration
public ExpressionTreeNodeType NodeType { get; }
Property Value
Type | Description |
---|---|
ExpressionTreeNodeType |
Methods
Equals(ExpressionTreeNode)
Checks whether the current node is equal to the specified expression tree node. Equality for expression tree nodes is based on structural properties of the trees.
Declaration
public virtual bool Equals(ExpressionTreeNode other)
Parameters
Type | Name | Description |
---|---|---|
ExpressionTreeNode | other | Expression tree node to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if both nodes are equal; otherwise, false. |
Equals(Object)
Checks whether the current node is equal to the specified object.
Declaration
public abstract override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current instance and the specified object are equal; otherwise, false. |
EqualsCore(ExpressionTreeNode)
Checks whether the expression tree node is equal to the specified expression tree node. This method is used by the Equals implementation and ensures that the current instance and the specified expression tree node have the same node type.
Declaration
protected abstract bool EqualsCore(ExpressionTreeNode other)
Parameters
Type | Name | Description |
---|---|---|
ExpressionTreeNode | other | Expression tree node to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if both nodes are equal; otherwise, false. |
GetHashCode()
Gets a hash code representation of the current expression tree node instance.
Declaration
public abstract override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code representation of the current expression tree node instance. |