Class ExpressionTreeBase
Base class for expression trees.
Inheritance
Inherited Members
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public abstract class ExpressionTreeBase : Tree<ExpressionTreeNode>, ITree<ExpressionTreeNode>, ITree, IEquatable<ExpressionTreeBase>, ITyped
Constructors
ExpressionTreeBase(ExpressionTreeNode, IEnumerable<ExpressionTreeBase>)
Creates a new expression tree with the specified expression tree node data and children.
Declaration
protected ExpressionTreeBase(ExpressionTreeNode expression, IEnumerable<ExpressionTreeBase> children)
Parameters
Type | Name | Description |
---|---|---|
ExpressionTreeNode | expression | Expression tree node data in the new tree. |
System.Collections.Generic.IEnumerable<ExpressionTreeBase> | children | Children of the new tree. |
ExpressionTreeBase(ExpressionTreeNode, ExpressionTreeBase[])
Creates a new expression tree with the specified expression tree node data and children.
Declaration
protected ExpressionTreeBase(ExpressionTreeNode expression, params ExpressionTreeBase[] children)
Parameters
Type | Name | Description |
---|---|---|
ExpressionTreeNode | expression | Expression tree node data in the new tree. |
ExpressionTreeBase[] | children | Children of the new tree. |
Methods
Equals(ExpressionTreeBase)
Checks whether the expression tree is equal to the specified expression tree. Equality for expression trees is based on structural properties of the trees.
Declaration
public virtual bool Equals(ExpressionTreeBase other)
Parameters
Type | Name | Description |
---|---|---|
ExpressionTreeBase | other | Expression tree to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | true if both trees are equal; otherwise, false. |
Equals(Object)
Checks whether the expression tree is equal to the specified object.
Declaration
public 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. |
GetHashCode()
Gets a hash code representing the expression tree.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code representing the expression tree. |
GetTypeCore()
Gets the type of the expression tree node.
Declaration
protected abstract IType GetTypeCore()
Returns
Type | Description |
---|---|
IType | Type of the expression tree node. |
Explicit Interface Implementations
ITyped.GetType()
Gets the type of the expression tree node.
Declaration
IType ITyped.GetType()
Returns
Type | Description |
---|---|
IType | Type of the expression tree node. |