3 instantiations of ListInitExpression
System.Linq.Expressions (3)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
668expr = new ListInitExpression((NewExpression)rewrittenNew, new TrueReadOnlyCollection<ElementInit>(newInits));
System\Linq\Expressions\ListInitExpression.cs (2)
130return new ListInitExpression(newExpression, ReadOnlyCollection<ElementInit>.Empty); 212return new ListInitExpression(newExpression, initializerlist);
53 references to ListInitExpression
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
ExpressionTrees\Sources\ExprLambdaUtils.vb (1)
282Protected Overrides Function VisitListInit(node As ListInitExpression) As Expression
netstandard (1)
netstandard.cs (1)
1009[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.ListInitExpression))]
System.Core (1)
System.Core.cs (1)
147[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.Expressions.ListInitExpression))]
System.Linq.Expressions (50)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
933EmitListInit((ListInitExpression)expr); 1051private void EmitListInit(ListInitExpression init)
System\Linq\Expressions\Compiler\StackSpiller.cs (2)
626var node = (ListInitExpression)expr;
System\Linq\Expressions\DebugViewWriter.cs (1)
823protected internal override Expression VisitListInit(ListInitExpression node)
System\Linq\Expressions\Expression.DebuggerProxy.cs (2)
240private readonly ListInitExpression _node; 242public ListInitExpressionProxy(ListInitExpression node)
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
322protected internal override Expression VisitListInit(ListInitExpression node)
System\Linq\Expressions\ExpressionVisitor.cs (2)
558/// Visits the children of the <see cref="ListInitExpression"/>. 563protected internal virtual Expression VisitListInit(ListInitExpression node)
System\Linq\Expressions\Interpreter\LightCompiler.cs (2)
2690var node = (ListInitExpression)expr;
System\Linq\Expressions\ListInitExpression.cs (38)
85public ListInitExpression Update(NewExpression newExpression, IEnumerable<ElementInit> initializers) 102/// Creates a <see cref="ListInitExpression"/> that uses a method named "Add" to add elements to a collection. 104/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.NewExpression"/> property equal to.</param> 105/// <param name="initializers">An array of <see cref="Expression"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</param> 106/// <returns>A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> and the <see cref="ListInitExpression.NewExpression"/> property set to the specified value.</returns> 109public static ListInitExpression ListInit(NewExpression newExpression, params Expression[] initializers) 115/// Creates a <see cref="ListInitExpression"/> that uses a method named "Add" to add elements to a collection. 117/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.NewExpression"/> property equal to.</param> 118/// <param name="initializers">An <see cref="IEnumerable{T}"/> that contains <see cref="Expressions.ElementInit"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</param> 119/// <returns>A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> and the <see cref="ListInitExpression.NewExpression"/> property set to the specified value.</returns> 122public static ListInitExpression ListInit(NewExpression newExpression, IEnumerable<Expression> initializers) 138/// Creates a <see cref="ListInitExpression"/> that uses a specified method to add elements to a collection. 140/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.NewExpression"/> property equal to.</param> 142/// <param name="initializers">An array of <see cref="Expression"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</param> 143/// <returns>A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> and the <see cref="ListInitExpression.NewExpression"/> property set to the specified value.</returns> 146public static ListInitExpression ListInit(NewExpression newExpression, MethodInfo? addMethod, params Expression[] initializers) 152/// Creates a <see cref="ListInitExpression"/> that uses a specified method to add elements to a collection. 154/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.NewExpression"/> property equal to.</param> 157/// <returns>A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> and the <see cref="ListInitExpression.NewExpression"/> property set to the specified value.</returns> 160public static ListInitExpression ListInit(NewExpression newExpression, MethodInfo? addMethod, IEnumerable<Expression> initializers) 179/// Creates a <see cref="ListInitExpression"/> that uses specified <see cref="Expressions.ElementInit"/> objects to initialize a collection. 181/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.NewExpression"/> property equal to.</param> 182/// <param name="initializers">An array that contains <see cref="Expressions.ElementInit"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</param> 184/// A <see cref="ListInitExpression"/> that has the <see cref="NodeType"/> property equal to <see cref="ExpressionType.ListInit"/> 185/// and the <see cref="ListInitExpression.NewExpression"/> and <see cref="ListInitExpression.Initializers"/> properties set to the specified values. 189/// The <see cref="Type"/> property of the resulting <see cref="ListInitExpression"/> is equal to <paramref name="newExpression"/>.Type. 191public static ListInitExpression ListInit(NewExpression newExpression, params ElementInit[] initializers) 197/// Creates a <see cref="ListInitExpression"/> that uses specified <see cref="Expressions.ElementInit"/> objects to initialize a collection. 199/// <param name="newExpression">A <see cref="NewExpression"/> to set the <see cref="ListInitExpression.NewExpression"/> property equal to.</param> 200/// <param name="initializers">An <see cref="IEnumerable{T}"/> that contains <see cref="Expressions.ElementInit"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</param> 201/// <returns>An <see cref="IEnumerable{T}"/> that contains <see cref="Expressions.ElementInit"/> objects to use to populate the <see cref="ListInitExpression.Initializers"/> collection.</returns> 204/// The <see cref="Type"/> property of the resulting <see cref="ListInitExpression"/> is equal to <paramref name="newExpression"/>.Type. 206public static ListInitExpression ListInit(NewExpression newExpression, IEnumerable<ElementInit> initializers)