Some more stubs and fixes.
[mono.git] / mcs / class / corlib / System.Reflection / Assembly.cs
1 using System;
2 using System.Security.Policy;
3 using System.Runtime.Serialization;
4 using System.Reflection.Emit;
5 using System.IO;
6 using System.Globalization;
7
8 namespace System.Reflection {
9
10         public class Assembly : System.Object, System.Reflection.ICustomAttributeProvider,
11                 System.Security.IEvidenceFactory, System.Runtime.Serialization.ISerializable {
12
13                 private string codebase;
14                 private string copiedcodebase;
15                 private string fullname;
16                 private string location;
17                 private Evidence evidence;
18                 private MethodInfo entrypoint;
19         
20                 public virtual string CodeBase { get {return codebase;} }
21
22                 public virtual string CopiedCodeBase { get {return copiedcodebase;} } 
23
24                 public virtual string FullName { get {return fullname;} }
25
26                 public virtual MethodInfo EntryPoint { get {return entrypoint;} }
27
28                 public virtual Evidence Evidence { get {return evidence;} }
29
30                 public virtual String Location { get {return location;} }
31
32                 public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
33                 {
34                 }
35
36                 public virtual Boolean IsDefined(Type attributeType)
37                 {
38                         return false;
39                 }
40
41                 public virtual bool IsDefined (Type attribute_type, bool inherit)
42                 {
43                         return false;
44                 }
45
46                 public virtual Object[] GetCustomAttributes()
47                 {
48                         return null;
49                 }
50
51                 public virtual Object[] GetCustomAttributes(Type attributeType)
52                 {
53                         return null;
54                 }
55                 
56                 public virtual object [] GetCustomAttributes (bool inherit)
57                 {
58                         return null;
59                 }
60
61                 public virtual object [] GetCustomAttributes (Type attribute_type, bool inherit)
62                 {
63                         return null;
64                 }
65
66                 public virtual void RemoveOnTypeResolve(ResolveEventHandler handler)
67                 {
68                 }
69
70                 public virtual void AddOnTypeResolve(ResolveEventHandler handler)
71                 {
72                 }
73
74                 public virtual void RemoveOnResourceResolve(ResolveEventHandler handler)
75                 {
76                 }
77                 
78                 public virtual void AddOnResourceResolve(ResolveEventHandler handler)
79                 {
80                 }
81
82                 public virtual ModuleBuilder DefineDynamicModule(String name, Boolean emitSymbolInfo)
83                 {
84                         return null;
85                 }
86
87                 public virtual ModuleBuilder DefineDynamicModule(String name)
88                 {
89                         return null;
90                 }
91
92                 public virtual FileStream[] GetFiles()
93                 {
94                         return null;
95                 }
96
97                 public virtual FileStream GetFile(String name)
98                 {
99                         return null;
100                 }
101
102                 public virtual Stream GetManifestResourceStream(String name)
103                 {
104                         return null;
105                 }
106
107                 public virtual Stream GetManifestResourceStream(Type type, String name)
108                 {
109                         return null;
110                 }
111
112                 public virtual Type[] GetTypes()
113                 {
114                         return null;
115                 }
116
117                 public virtual Type[] GetExportedTypes()
118                 {
119                         return null;
120                 }
121
122                 public virtual Type GetType(String name, Boolean throwOnError)
123                 {
124                         return null;
125                 }
126
127                 public virtual Type GetType(String name)
128                 {
129                         return GetType (name, true);
130                 }
131                 
132                 public virtual AssemblyName GetName(Boolean copiedName)
133                 {
134                         return null;
135                 }
136
137                 public virtual AssemblyName GetName()
138                 {
139                         return null;
140                 }
141
142                 public override String ToString()
143                 {
144                         return "FIXME: assembly";
145                 }
146                 
147                 public static String CreateQualifiedName(String assemblyName, String typeName) 
148                 {
149                         return "FIXME: assembly";
150                 }
151
152                 public static String nCreateQualifiedName(String assemblyName, String typeName)
153                 {
154                         return "FIXME: assembly";
155                 }
156
157                 public static Assembly GetAssembly(Type type)
158                 {
159                         return null;
160                 }
161
162                 public Type GetType(String name, Boolean throwOnError, Boolean ignoreCase)
163                 {
164                         return null;
165                 }
166
167                 public Assembly GetSatelliteAssembly(CultureInfo culture)
168                 {
169                         return null;
170                 }
171
172                 public static Assembly LoadFrom(String assemblyFile)
173                 {
174                         return null;
175                 }
176
177                 public static Assembly LoadFrom(String assemblyFile, Evidence securityEvidence)
178                 {
179                         return null;
180                 }
181
182                 public static Assembly Load(String assemblyString)
183                 {
184                         return null;
185                 }
186                 
187                 public static Assembly Load(String assemblyString, Evidence assemblySecurity)
188                 {
189                         return null;
190                 }
191
192                 public static Assembly Load(AssemblyName assemblyRef)
193                 {
194                         return null;
195                 }
196
197                 public static Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity)
198                 {
199                         return null;
200                 }
201
202                 public static Assembly Load(Byte[] rawAssembly)
203                 {
204                         return null;
205                 }
206
207                 public static Assembly Load(Byte[] rawAssembly, Byte[] rawSymbolStore)
208                 {
209                         return null;
210                 }
211
212                 public static Assembly Load(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence securityEvidence)
213                 {
214                         return null;
215                 }
216
217                 public Object CreateInstance(String typeName) 
218                 {
219                         return null;
220                 }
221
222                 public Object CreateInstance(String typeName, Boolean ignoreCase)
223                 {
224                         return null;
225                 }
226
227                 public Object CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
228                 {
229                         return null;
230                 }
231
232                 public Module[] GetLoadedModules()
233                 {
234                         return null;
235                 }
236
237                 public Module[] GetModules()
238                 {
239                         return null;
240                 }
241
242                 public Module GetModule(String name)
243                 {
244                         return null;
245                 }
246
247                 public String[] GetManifestResourceNames()
248                 {
249                         return null;
250                 }
251
252                 public static Assembly GetExecutingAssembly()
253                 {
254                         return null;
255                 }
256
257                 public AssemblyName[] GetReferencedAssemblies()
258                 {
259                         return null;
260                 }
261
262                 public ManifestResourceInfo GetManifestResourceInfo(String resourceName)
263                 {
264                         return null;
265                 }
266
267                 public static Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity, String callerLocation)
268                 {
269                         return null;
270                 }
271
272                 public static Assembly Load(String assemblyString, Evidence assemblySecurity, String callerLocation)
273                 {
274                         return null;
275                 }
276
277         }
278 }