Expression.ListInit Method
.NET Framework 4
Creates a ListInitExpression.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
ListInit(NewExpression, IEnumerable<ElementInit>) | Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection. |
|
ListInit(NewExpression, IEnumerable<Expression>) | Creates a ListInitExpression that uses a method named "Add" to add elements to a collection. |
|
ListInit(NewExpression, ElementInit[]) | Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection. |
|
ListInit(NewExpression, Expression[]) | Creates a ListInitExpression that uses a method named "Add" to add elements to a collection. |
|
ListInit(NewExpression, MethodInfo, IEnumerable<Expression>) | Creates a ListInitExpression that uses a specified method to add elements to a collection. |
|
ListInit(NewExpression, MethodInfo, Expression[]) | Creates a ListInitExpression that uses a specified method to add elements to a collection. |