CodeThrowExceptionStatement.cs 724 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // System.CodeDom CodeThrowExceptionStatement Class implementation
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) 2001 Ximian, Inc.
  8. //
  9. using System.Runtime.InteropServices;
  10. namespace System.CodeDom
  11. {
  12. [Serializable]
  13. [ClassInterface(ClassInterfaceType.AutoDispatch)]
  14. [ComVisible(true)]
  15. public class CodeThrowExceptionStatement
  16. : CodeStatement
  17. {
  18. private CodeExpression toThrow;
  19. //
  20. // Constructors
  21. //
  22. public CodeThrowExceptionStatement ()
  23. {
  24. }
  25. public CodeThrowExceptionStatement (CodeExpression toThrow)
  26. {
  27. this.toThrow = toThrow;
  28. }
  29. //
  30. // Properties
  31. //
  32. public CodeExpression ToThrow {
  33. get {
  34. return toThrow;
  35. }
  36. set {
  37. toThrow = value;
  38. }
  39. }
  40. }
  41. }