CodeArrayCreateExpression Constructors

Definition

Initializes a new instance of the CodeArrayCreateExpression class.

Overloads

CodeArrayCreateExpression()

Initializes a new instance of the CodeArrayCreateExpression class.

CodeArrayCreateExpression(CodeTypeReference, CodeExpression)

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.

CodeArrayCreateExpression(CodeTypeReference, CodeExpression[])

Initializes a new instance of the CodeArrayCreateExpression class using the specified array data type and initialization expressions.

CodeArrayCreateExpression(CodeTypeReference, Int32)

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

CodeArrayCreateExpression(String, CodeExpression)

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

CodeArrayCreateExpression(String, CodeExpression[])

Initializes a new instance of the CodeArrayCreateExpression class using the specified array data type name and initializers.

CodeArrayCreateExpression(String, Int32)

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

CodeArrayCreateExpression(Type, CodeExpression)

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.

CodeArrayCreateExpression(Type, CodeExpression[])

Initializes a new instance of the CodeArrayCreateExpression class using the specified array data type and initializers.

CodeArrayCreateExpression(Type, Int32)

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

CodeArrayCreateExpression()

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

Initializes a new instance of the CodeArrayCreateExpression class.

C#
public CodeArrayCreateExpression();

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(CodeTypeReference, CodeExpression)

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

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.

C#
public CodeArrayCreateExpression(System.CodeDom.CodeTypeReference createType, System.CodeDom.CodeExpression size);

Parameters

createType
CodeTypeReference

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

size
CodeExpression

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

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(CodeTypeReference, CodeExpression[])

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

Initializes a new instance of the CodeArrayCreateExpression class using the specified array data type and initialization expressions.

C#
public CodeArrayCreateExpression(System.CodeDom.CodeTypeReference createType, params System.CodeDom.CodeExpression[] initializers);

Parameters

createType
CodeTypeReference

A CodeTypeReference that indicates the data type of the array to create.

initializers
CodeExpression[]

An array of expressions to use to initialize the array.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(CodeTypeReference, Int32)

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

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

C#
public CodeArrayCreateExpression(System.CodeDom.CodeTypeReference createType, int size);

Parameters

createType
CodeTypeReference

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

size
Int32

The number of indexes of the array to create.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(String, CodeExpression)

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

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

C#
public CodeArrayCreateExpression(string createType, System.CodeDom.CodeExpression size);

Parameters

createType
String

The name of the data type of the array to create.

size
CodeExpression

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

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(String, CodeExpression[])

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

Initializes a new instance of the CodeArrayCreateExpression class using the specified array data type name and initializers.

C#
public CodeArrayCreateExpression(string createType, params System.CodeDom.CodeExpression[] initializers);

Parameters

createType
String

The name of the data type of the array to create.

initializers
CodeExpression[]

An array of expressions to use to initialize the array.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(String, Int32)

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

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

C#
public CodeArrayCreateExpression(string createType, int size);

Parameters

createType
String

The name of the data type of the array to create.

size
Int32

The number of indexes of the array to create.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(Type, CodeExpression)

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

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.

C#
public CodeArrayCreateExpression(Type createType, System.CodeDom.CodeExpression size);

Parameters

createType
Type

The data type of the array to create.

size
CodeExpression

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

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(Type, CodeExpression[])

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

Initializes a new instance of the CodeArrayCreateExpression class using the specified array data type and initializers.

C#
public CodeArrayCreateExpression(Type createType, params System.CodeDom.CodeExpression[] initializers);

Parameters

createType
Type

The data type of the array to create.

initializers
CodeExpression[]

An array of expressions to use to initialize the array.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

CodeArrayCreateExpression(Type, Int32)

Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs
Source:
CodeArrayCreateExpression.cs

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

C#
public CodeArrayCreateExpression(Type createType, int size);

Parameters

createType
Type

The data type of the array to create.

size
Int32

The number of indexes of the array to create.

Applies to

.NET 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9