ListInit Method
TOC
Collapse the table of content
Expand the table of content

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.

  NameDescription
Public method Static member ListInit(NewExpression, IEnumerable(Of ElementInit)) Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.
Public method Static member ListInit(NewExpression, IEnumerable(Of Expression)) Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.
Public method Static member ListInit(NewExpression, ElementInit()) Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.
Public method Static member ListInit(NewExpression, Expression()) Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.
Public method Static member ListInit(NewExpression, MethodInfo, IEnumerable(Of Expression)) Creates a ListInitExpression that uses a specified method to add elements to a collection.
Public method Static member ListInit(NewExpression, MethodInfo, Expression()) Creates a ListInitExpression that uses a specified method to add elements to a collection.
Top

Show:
© 2017 Microsoft