CodeConditionStatement Constructor (CodeExpression^, array<CodeStatement^>^, array<CodeStatement^>^)

 

Initializes a new instance of the CodeConditionStatement class using the specified condition and statements.

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

public:
CodeConditionStatement(
	CodeExpression^ condition,
	array<CodeStatement^>^ trueStatements,
	array<CodeStatement^>^ falseStatements
)

Parameters

condition
Type: System.CodeDom::CodeExpression^

A CodeExpression that indicates the condition to evaluate.

trueStatements
Type: array<System.CodeDom::CodeStatement^>^

An array of type CodeStatement containing the statements to execute if the condition is true.

falseStatements
Type: array<System.CodeDom::CodeStatement^>^

An array of type CodeStatement containing the statements to execute if the condition is false.

.NET Framework
Available since 1.1
Return to top
Show: