CodeCatchClause.cs 852 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // System.CodeDom CodeCatchClaus Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc.
  8. //
  9. namespace System.CodeDom {
  10. public class CodeCatchClause {
  11. CodeParameterDeclarationExpression condition;
  12. CodeStatementCollection statements;
  13. public CodeCatchClause ()
  14. {
  15. this.statements = new CodeStatementCollection ();
  16. }
  17. public CodeCatchClause (CodeParameterDeclarationExpression condition,
  18. CodeStatement [] statements)
  19. {
  20. this.condition = condition;
  21. this.statements = new CodeStatementCollection ();
  22. this.statements.AddRange (statements);
  23. }
  24. public CodeStatementCollection Statements {
  25. get {
  26. return statements;
  27. }
  28. }
  29. public CodeParameterDeclarationExpression Condition {
  30. get {
  31. return condition;
  32. }
  33. set {
  34. condition = value;
  35. }
  36. }
  37. }
  38. }