CodeThrowExceptionStatement.cs 528 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // System.CodeDom CodeThrowExceptionStatement 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 CodeThrowExceptionStatement : CodeStatement {
  11. CodeExpression toThrow;
  12. public CodeThrowExceptionStatement () {}
  13. public CodeThrowExceptionStatement (CodeExpression toThrow)
  14. {
  15. this.toThrow = toThrow;
  16. }
  17. public CodeExpression ToThrow {
  18. get {
  19. return toThrow;
  20. }
  21. set {
  22. toThrow = value;
  23. }
  24. }
  25. }
  26. }