8 [DebuggerTypeProxy(typeof(ListInitExpressionProxy))]
9 [global::__DynamicallyInvokable]
18 [global::__DynamicallyInvokable]
21 [global::__DynamicallyInvokable]
30 [global::__DynamicallyInvokable]
33 [global::__DynamicallyInvokable]
36 return _newExpression.Type;
42 [global::__DynamicallyInvokable]
45 [global::__DynamicallyInvokable]
54 [global::__DynamicallyInvokable]
57 [global::__DynamicallyInvokable]
60 return _newExpression;
66 [global::__DynamicallyInvokable]
69 [global::__DynamicallyInvokable]
78 _newExpression = newExpression;
79 _initializers = initializers;
82 protected internal override Expression Accept(ExpressionVisitor visitor)
84 return visitor.VisitListInit(
this);
89 [global::__DynamicallyInvokable]
99 [global::__DynamicallyInvokable]
106 return Expression.ListInit(newExpression, initializers);
ListInitExpression Update(NewExpression newExpression, IEnumerable< ElementInit > initializers)
Creates a new expression that is like this one, but using the supplied children. If all of the childr...
Provides the base class for a generic read-only collection.
Represents a constructor call.
Represents calling a constructor and initializing one or more members of the new object.
sealed override ExpressionType NodeType
Returns the node type of this T:System.Linq.Expressions.Expression.
Exposes the enumerator, which supports a simple iteration over a collection of a specified type....
Provides the base class from which the classes that represent expression tree nodes are derived....
Represents type declarations: class types, interface types, array types, value types,...
Represents a constructor call that has a collection initializer.
ExpressionType
Describes the node types for the nodes of an expression tree.
ReadOnlyCollection< ElementInit > Initializers
Gets the element initializers that are used to initialize a collection.
override bool CanReduce
Gets a value that indicates whether the expression tree node can be reduced.
override Expression Reduce()
Reduces the binary expression node to a simpler expression.