Expression.NewArrayInit Method (Type, IEnumerable<Expression>)
Creates a NewArrayExpression that represents creating a one-dimensional array and initializing it from a list of elements.
Assembly: System.Core (in System.Core.dll)
static member NewArrayInit : type:Type * initializers:IEnumerable<Expression> -> NewArrayExpression
The Type property of each element of initializers must represent a type that is assignable to the type represented by type, possibly after it is quoted.
An element will be quoted only if type is Expression. Quoting means the element is wrapped in a Quote node. The resulting node is a UnaryExpression whose Operand property is the element of initializers.
Available since 8
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1