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