Files
mono/mcs/class/System/System.CodeDom/CodeTryCatchFinallyStatement.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

71 lines
1.6 KiB
C#
Executable File

//
// System.CodeDom CodeTryCatchFinallyStatement Class implementation
//
// Author:
// Miguel de Icaza ([email protected])
//
// (C) 2001 Ximian, Inc.
//
namespace System.CodeDom {
public class CodeTryCatchFinallyStatement : CodeStatement {
CodeStatementCollection tryStatements, finallyStatements;
CodeCatchClauseCollection catchClauses;
public CodeTryCatchFinallyStatement () {}
public CodeTryCatchFinallyStatement (CodeStatement [] tryStatements,
CodeCatchClause [] catchClauses)
{
this.tryStatements = new CodeStatementCollection ();
this.catchClauses = new CodeCatchClauseCollection ();
this.tryStatements.AddRange (tryStatements);
this.catchClauses.AddRange (catchClauses);
}
public CodeTryCatchFinallyStatement (CodeStatement [] tryStatements,
CodeCatchClause [] catchClauses,
CodeStatement [] finallyStatements)
{
this.tryStatements = new CodeStatementCollection ();
this.catchClauses = new CodeCatchClauseCollection ();
this.finallyStatements = new CodeStatementCollection ();
this.tryStatements.AddRange (tryStatements);
this.catchClauses.AddRange (catchClauses);
this.finallyStatements.AddRange (finallyStatements);
}
public CodeStatementCollection FinallyStatements{
get {
return finallyStatements;
}
set {
finallyStatements = value;
}
}
public CodeStatementCollection TryStatements {
get {
return tryStatements;
}
set {
tryStatements = value;
}
}
public CodeCatchClauseCollection CatchClauses {
get {
return catchClauses;
}
set {
catchClauses = value;
}
}
}
}