| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- //
- // 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;
- }
- }
- }
- }
|