CodeIterationStatement::InitStatement Property

 

Gets or sets the loop initialization statement.

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

public:
property CodeStatement^ InitStatement {
	CodeStatement^ get();
	void set(CodeStatement^ value);
}

Property Value

Type: System.CodeDom::CodeStatement^

A CodeStatement that indicates the loop initialization statement.

You can specify an empty initialization statement by setting this property to a CodeExpressionStatement that contains a CodeSnippetExpression that contains an empty string.

.NET Framework
Available since 1.1
Return to top
Show: