* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Design / System.Windows.Forms.Design / AxParameterData.cs
1 //
2 // System.Windows.Forms.Design.AxParameterData.cs
3 //
4 // Author:
5 //   Gert Driesen (drieseng@users.sourceforge.net)
6 //
7 // (C) 2004 Novell
8 //
9
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30
31 using System.CodeDom;
32 using System.Reflection;
33
34 namespace System.Windows.Forms.Design
35 {
36         public class AxParameterData
37         {
38                 [MonoTODO]
39                 public AxParameterData (ParameterInfo info) : this (info, false)
40                 {
41                 }
42
43                 [MonoTODO]
44                 public AxParameterData (ParameterInfo info, bool ignoreByRefs)
45                 {
46                         throw new NotImplementedException ();
47                 }
48
49                 [MonoTODO]
50                 public AxParameterData (string inname, string typeName)
51                 {
52                         throw new NotImplementedException ();
53                 }
54
55                 [MonoTODO]
56                 public AxParameterData (string inname, Type type)
57                 {
58                         throw new NotImplementedException ();
59                 }
60
61                 [MonoTODO]
62                 public static AxParameterData[] Convert (ParameterInfo[] infos)
63                 {
64                         throw new NotImplementedException ();
65                 }
66
67                 [MonoTODO]
68                 public static AxParameterData[] Convert (ParameterInfo[] infos, bool ignoreByRefs)
69                 {
70                         throw new NotImplementedException ();
71                 }
72
73                 public FieldDirection Direction {
74                         get {
75                                 if (this.IsOut)
76                                         return FieldDirection.Out;
77
78                                 if (this.IsByRef)
79                                         return FieldDirection.Ref;
80
81                                 return FieldDirection.In;
82                         }
83                 }
84                 public bool IsByRef {
85                         get {
86                                 return isByRef;
87                         }
88                 }
89
90                 public bool IsIn {
91                         get {
92                                 return isIn;
93                         }
94                 }
95
96                 public bool IsOptional {
97                         get {
98                                 return isOptional;
99                         }
100                 }
101
102                 public bool IsOut {
103                         get {
104                                 return isOut;
105                         }
106                 }
107
108                 public string Name {
109                         get {
110                                 return name;
111                         }
112                         [MonoTODO]
113                         set {
114                                 throw new NotImplementedException ();
115                         }
116                 }
117
118                 public Type ParameterType {
119                         get {
120                                 return type;
121                         }
122                 }
123
124                 [MonoTODO]
125                 public string TypeName {
126                         get {
127                                 throw new NotImplementedException ();
128                         }
129                 }
130
131                 private bool isByRef;
132                 private bool isIn;
133                 private bool isOptional;
134                 private bool isOut;
135                 private string name;
136                 private Type type;
137                 private string typeName;
138         }
139 }