Files
mono/mcs/class/System/System.CodeDom/CodeCatchClause.cs
T
Sean MacIsaac 7fc6d7d59d Fixed all sorts of compiler errors.
svn path=/trunk/mcs/; revision=124
2001-07-13 22:20:51 +00:00

47 lines
852 B
C#
Executable File

//
// System.CodeDom CodeCatchClaus Class implementation
//
// Author:
// Miguel de Icaza ([email protected])
//
// (C) 2001 Ximian, Inc.
//
namespace System.CodeDom {
public class CodeCatchClause {
CodeParameterDeclarationExpression condition;
CodeStatementCollection statements;
public CodeCatchClause ()
{
this.statements = new CodeStatementCollection ();
}
public CodeCatchClause (CodeParameterDeclarationExpression condition,
CodeStatement [] statements)
{
this.condition = condition;
this.statements = new CodeStatementCollection ();
this.statements.AddRange (statements);
}
public CodeStatementCollection Statements {
get {
return statements;
}
}
public CodeParameterDeclarationExpression Condition {
get {
return condition;
}
set {
condition = value;
}
}
}
}