Condividi tramite


Expression.ListInit Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

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.

Overload List

  Name Description
Public methodStatic memberSupported by Silverlight for Windows Phone ListInit(NewExpression, IEnumerable<ElementInit>) Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.
Public methodStatic memberSupported by Silverlight for Windows Phone ListInit(NewExpression, IEnumerable<Expression>) Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.
Public methodStatic memberSupported by Silverlight for Windows Phone ListInit(NewExpression, array<ElementInit[]) Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.
Public methodStatic memberSupported by Silverlight for Windows Phone ListInit(NewExpression, array<Expression[]) Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.
Public methodStatic memberSupported by Silverlight for Windows Phone ListInit(NewExpression, MethodInfo, IEnumerable<Expression>) Creates a ListInitExpression that uses a specified method to add elements to a collection.
Public methodStatic memberSupported by Silverlight for Windows Phone ListInit(NewExpression, MethodInfo, array<Expression[]) Creates a ListInitExpression that uses a specified method to add elements to a collection.

Top