ListInitExpression.Initializers Property

 

Gets the element initializers that are used to initialize a collection.

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

public ReadOnlyCollection<ElementInit> Initializers { get; }

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ElementInit>

A ReadOnlyCollection<T> of ElementInit objects which represent the elements that are used to initialize the collection.

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: