<PackageReference Include="System.Linq.Expressions" Version="4.0.11-beta-23409" />

ListInitExpression

public sealed class ListInitExpression : Expression
Represents a constructor call that has a collection initializer.

Gets the element initializers that are used to initialize a collection.

public NewExpression NewExpression { get; }

Gets the expression that contains a call to the constructor of a collection type.

public 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 children are the same, it will return this expression.