- System.CodeDom review, ns more or less complete now
[mono.git] / mcs / class / System / System.CodeDom / CodeAttributeArgument.cs
1 //
2 // System.CodeDom CodeAttributeArgument 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 CodeAttributeArgument
18         {
19                 private string name;
20                 private CodeExpression value;
21                 
22                 //
23                 // Constructors
24                 //
25                 public CodeAttributeArgument ()
26                 {
27                 }
28
29                 public CodeAttributeArgument (CodeExpression value)
30                 {
31                         this.value = value;
32                 }
33
34                 public CodeAttributeArgument (string name, CodeExpression value)
35                 {
36                         this.name = name;
37                         this.value = value;
38                 }
39
40                 //
41                 // Properties
42                 //
43                 public string Name {
44                         get {
45                                 return name;
46                         }
47                         set {
48                                 name = value;
49                         }
50                 }
51
52                 public CodeExpression Value {
53                         get {
54                                 return this.value;
55                         }
56                         set {
57                                 this.value = value;
58                         }
59                 }
60         }
61 }