CodeThrowExceptionStatement.cs 544 B

1234567891011121314151617181920212223242526272829303132
  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. [Serializable]
  11. public class CodeThrowExceptionStatement : CodeStatement {
  12. CodeExpression toThrow;
  13. public CodeThrowExceptionStatement () {}
  14. public CodeThrowExceptionStatement (CodeExpression toThrow)
  15. {
  16. this.toThrow = toThrow;
  17. }
  18. public CodeExpression ToThrow {
  19. get {
  20. return toThrow;
  21. }
  22. set {
  23. toThrow = value;
  24. }
  25. }
  26. }
  27. }