- System.CodeDom review, ns more or less complete now
[mono.git] / mcs / class / System / System.CodeDom / CodeThrowExceptionStatement.cs
1 //
2 // System.CodeDom CodeThrowExceptionStatement Class implementation
3 //
4 // Author:
5 //   Miguel de Icaza (miguel@ximian.com)
6 //
7 // (C) 2001 Ximian, Inc.
8 //
9
10 using System.Runtime.InteropServices;
11
12 namespace System.CodeDom
13 {
14         [Serializable]
15         [ClassInterface(ClassInterfaceType.AutoDispatch)]
16         [ComVisible(true)]
17         public class CodeThrowExceptionStatement
18                 : CodeStatement 
19         {
20                 private CodeExpression toThrow;
21                 
22                 //
23                 // Constructors
24                 //
25                 public CodeThrowExceptionStatement ()
26                 {
27                 }
28
29                 public CodeThrowExceptionStatement (CodeExpression toThrow)
30                 {
31                         this.toThrow = toThrow;
32                 }
33
34                 //
35                 // Properties
36                 //
37                 public CodeExpression ToThrow {
38                         get {
39                                 return toThrow;
40                         }
41                         set {
42                                 toThrow = value;
43                         }
44                 }
45         }
46 }