CodeArrayCreateExpression Constructor (CodeTypeReference, CodeExpression)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the CodeArrayCreateExpression class using the specified array data type and code expression indicating the number of indexes for the array.

Namespace:   System.CodeDom
Assembly:  System (in System.dll)

public CodeArrayCreateExpression(
	CodeTypeReference createType,
	CodeExpression size
)

Parameters

createType
Type: System.CodeDom.CodeTypeReference

A CodeTypeReference indicating the data type of the array to create.

size
Type: System.CodeDom.CodeExpression

An expression that indicates the number of indexes of the array to create.

.NET Framework
Available since 1.1
Return to top
Show: