CodeVariableDeclarationStatement Constructor (CodeTypeReference, String, CodeExpression)

 

Initializes a new instance of the CodeVariableDeclarationStatement class using the specified data type, variable name, and initialization expression.

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

public CodeVariableDeclarationStatement(
	CodeTypeReference type,
	string name,
	CodeExpression initExpression
)

Parameters

type
Type: System.CodeDom.CodeTypeReference

A CodeTypeReference that indicates the type of the variable.

name
Type: System.String

The name of the variable.

initExpression
Type: System.CodeDom.CodeExpression

A CodeExpression that indicates the initialization expression for the variable.

.NET Framework
Available since 1.1
Return to top
Show: