Show / Hide Table of Contents

Class ElementInitExpressionTree

Represents an expression tree containing an element initializer.

Inheritance
System.Object
Tree<ExpressionTreeNode>
ExpressionTreeBase
ElementInitExpressionTree
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 sealed class ElementInitExpressionTree : ExpressionTreeBase, ITree<ExpressionTreeNode>, ITree, IEquatable<ExpressionTreeBase>, ITyped

Properties

ElementInit

Gets the element initializer contained in the expression tree.

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

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 element initializer expression tree with the given children, returning a new immutable tree.

Declaration
public ElementInitExpressionTree 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
ElementInitExpressionTree

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

Update(ExpressionTree[])

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

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

Child nodes for the copy of the current node.

Returns
Type Description
ElementInitExpressionTree

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

UpdateCore(IEnumerable<ITree<ExpressionTreeNode>>)

Updates the element initializer 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