Expression.ListInit Method

 
Namespace:   System.Linq.Expressions
Assembly:  System.Core (in System.Core.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticListInit(NewExpression, ElementInit[])

Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.

System_CAPS_pubmethodSystem_CAPS_staticListInit(NewExpression, Expression[])

Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.

System_CAPS_pubmethodSystem_CAPS_staticListInit(NewExpression, IEnumerable<ElementInit>)

Creates a ListInitExpression that uses specified ElementInit objects to initialize a collection.

System_CAPS_pubmethodSystem_CAPS_staticListInit(NewExpression, IEnumerable<Expression>)

Creates a ListInitExpression that uses a method named "Add" to add elements to a collection.

System_CAPS_pubmethodSystem_CAPS_staticListInit(NewExpression, MethodInfo, Expression[])

Creates a ListInitExpression that uses a specified method to add elements to a collection.

System_CAPS_pubmethodSystem_CAPS_staticListInit(NewExpression, MethodInfo, IEnumerable<Expression>)

Creates a ListInitExpression that uses a specified method to add elements to a collection.

Return to top
Show: