Show / Hide Table of Contents

Class ExpressionTree

Represents an expression tree containing an expression.

Inheritance
System.Object
Tree<ExpressionTreeNode>
ExpressionTreeBase
ExpressionTree
ExpressionTree<T>
Implements
ITree<ExpressionTreeNode>
ITree
System.IEquatable<ExpressionTreeBase>
ITyped
Inherited Members
ExpressionTreeBase.Equals(ExpressionTreeBase)
ExpressionTreeBase.Equals(Object)
ExpressionTreeBase.GetHashCode()
ExpressionTreeBase.ITyped.GetType()
Tree<ExpressionTreeNode>.ToString()
Tree<ExpressionTreeNode>.ToString(Int32)
Tree<ExpressionTreeNode>.Update(IEnumerable<ITree<ExpressionTreeNode>>)
Tree<ExpressionTreeNode>.Update(ITree<ExpressionTreeNode>[])
Tree<ExpressionTreeNode>.ITree.Update(IEnumerable<ITree>)
Tree<ExpressionTreeNode>.Accept(ITreeVisitor<ExpressionTreeNode>)
Tree<ExpressionTreeNode>.ITree.Accept(ITreeVisitor)
Tree<ExpressionTreeNode>.Value
Tree<ExpressionTreeNode>.Children
Tree<ExpressionTreeNode>.ITree.Value
Tree<ExpressionTreeNode>.ITree.Children
Namespace: System.Linq.Expressions
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public abstract class ExpressionTree : ExpressionTreeBase, ITree<ExpressionTreeNode>, ITree, IEquatable<ExpressionTreeBase>, ITyped

Properties

Expression

Gets the expression contained in the expression tree.

Declaration
public Expression Expression { get; }
Property Value
Type Description
System.Linq.Expressions.Expression

Methods

GetTypeCore()

Gets the type of the expression tree node.

Declaration
protected override IType GetTypeCore()
Returns
Type Description
IType

Type of the expression tree node.

Overrides
ExpressionTreeBase.GetTypeCore()

ToStringFormat()

Gets a format string with placeholders for the children. To be used with String.Format.

Declaration
public override string ToStringFormat()
Returns
Type Description
System.String

Format string that can be used to retrieve a string representation of the current node by supplying string representations of child nodes.

Overrides
System.Linq.CompilerServices.Tree<System.Linq.Expressions.ExpressionTreeNode>.ToStringFormat()

Update(IEnumerable<ExpressionTree>)

Updates the expression tree with the given children, returning a new immutable tree.

Declaration
public ExpressionTree Update(IEnumerable<ExpressionTree> children)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ExpressionTree> children

Child nodes for the copy of the current node.

Returns
Type Description
ExpressionTree

New immutable tree based on the current node, but with the specified child nodes.

Update(ExpressionTree[])

Updates the expression tree with the given children, returning a new immutable tree.

Declaration
public ExpressionTree Update(params ExpressionTree[] children)
Parameters
Type Name Description
ExpressionTree[] children

Child nodes for the copy of the current node.

Returns
Type Description
ExpressionTree

New immutable tree based on the current node, but with the specified child nodes.

UpdateCore(IEnumerable<ITree<ExpressionTreeNode>>)

Updates the expression tree with the given children, returning a new immutable tree.

Declaration
protected override ITree<ExpressionTreeNode> UpdateCore(IEnumerable<ITree<ExpressionTreeNode>> children)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<ITree<ExpressionTreeNode>> children

Child nodes for the copy of the current node.

Returns
Type Description
ITree<ExpressionTreeNode>

New immutable tree based on the current node, but with the specified child nodes.

Overrides
System.Linq.CompilerServices.Tree<System.Linq.Expressions.ExpressionTreeNode>.UpdateCore(System.Collections.Generic.IEnumerable<System.Linq.CompilerServices.ITree<System.Linq.Expressions.ExpressionTreeNode>>)

Implements

ITree<T>
ITree
System.IEquatable<>
ITyped
In This Article
Back to top Generated by DocFX