Expression.ListInit Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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(Of ElementInit)) | Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection. |
|
ListInit(NewExpression, IEnumerable(Of 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(Of 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. |
Show: