| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- //
- // System.CodeDom CodeTryCatchFinallyStatement Class implementation
- //
- // Author:
- // Miguel de Icaza ([email protected])
- //
- // (C) 2001 Ximian, Inc.
- //
- namespace System.CodeDom {
- [Serializable]
- 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;
- }
- }
- }
- }
|