2 // System.Reflection/Assembly.cs
5 // Paolo Molaro (lupus@ximian.com)
7 // (C) 2001 Ximian, Inc. http://www.ximian.com
11 using System.Security.Policy;
12 using System.Runtime.Serialization;
13 using System.Reflection.Emit;
15 using System.Globalization;
16 using System.Runtime.CompilerServices;
18 namespace System.Reflection {
20 public class Assembly : System.Reflection.ICustomAttributeProvider,
21 System.Security.IEvidenceFactory, System.Runtime.Serialization.ISerializable {
22 private IntPtr _mono_assembly;
24 public virtual string CodeBase { get {return null;} }
26 public virtual string CopiedCodeBase { get {return null;} }
28 public virtual string FullName { get {return null;} }
30 public virtual MethodInfo EntryPoint { get {return null;} }
32 public virtual Evidence Evidence { get {return null;} }
34 public virtual String Location { get {return null;} }
36 public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
40 public virtual Boolean IsDefined(Type attributeType)
45 public virtual bool IsDefined (Type attribute_type, bool inherit)
50 public virtual Object[] GetCustomAttributes()
55 public virtual Object[] GetCustomAttributes(Type attributeType)
60 public virtual object [] GetCustomAttributes (bool inherit)
65 public virtual object [] GetCustomAttributes (Type attribute_type, bool inherit)
70 public virtual void RemoveOnTypeResolve(ResolveEventHandler handler)
72 throw new NotImplementedException ();
75 public virtual void AddOnTypeResolve(ResolveEventHandler handler)
77 throw new NotImplementedException ();
80 public virtual void RemoveOnResourceResolve(ResolveEventHandler handler)
82 throw new NotImplementedException ();
85 public virtual void AddOnResourceResolve(ResolveEventHandler handler)
87 throw new NotImplementedException ();
90 public virtual ModuleBuilder DefineDynamicModule(String name, Boolean emitSymbolInfo)
92 throw new NotImplementedException ();
95 public virtual ModuleBuilder DefineDynamicModule(String name)
97 throw new NotImplementedException ();
100 public virtual FileStream[] GetFiles()
102 throw new NotImplementedException ();
105 public virtual FileStream GetFile(String name)
107 throw new NotImplementedException ();
110 public virtual Stream GetManifestResourceStream(String name)
112 throw new NotImplementedException ();
115 public virtual Stream GetManifestResourceStream(Type type, String name)
117 throw new NotImplementedException ();
120 public virtual Type[] GetTypes()
122 throw new NotImplementedException ();
125 public virtual Type[] GetExportedTypes()
127 throw new NotImplementedException ();
130 public virtual Type GetType(String name, Boolean throwOnError)
132 return GetType (name, throwOnError, false);
135 [MethodImplAttribute(MethodImplOptions.InternalCall)]
136 public extern virtual Type GetType(String name);
138 public Type GetType(String name, Boolean throwOnError, Boolean ignoreCase)
140 throw new NotImplementedException ();
143 public virtual AssemblyName GetName(Boolean copiedName)
145 throw new NotImplementedException ();
148 public virtual AssemblyName GetName()
150 throw new NotImplementedException ();
153 public override String ToString()
155 return GetName ().Name;
159 public static String CreateQualifiedName(String assemblyName, String typeName)
161 return "FIXME: assembly";
165 public static String nCreateQualifiedName(String assemblyName, String typeName)
167 return "FIXME: assembly";
171 public static Assembly GetAssembly(Type type)
173 throw new NotImplementedException ();
177 public Assembly GetSatelliteAssembly(CultureInfo culture)
179 throw new NotImplementedException ();
182 public static Assembly LoadFrom(String assemblyFile)
184 return LoadFrom (assemblyFile, new Evidence());
187 [MethodImplAttribute(MethodImplOptions.InternalCall)]
188 public static extern Assembly LoadFrom(String assemblyFile, Evidence securityEvidence);
190 public static Assembly Load(String assemblyString)
192 return LoadFrom (assemblyString, new Evidence());
195 public static Assembly Load(String assemblyString, Evidence assemblySecurity)
197 return LoadFrom (assemblyString, assemblySecurity);
200 public static Assembly Load(AssemblyName assemblyRef)
202 throw new NotImplementedException ();
205 public static Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity)
207 throw new NotImplementedException ();
210 public static Assembly Load(Byte[] rawAssembly)
212 throw new NotImplementedException ();
215 public static Assembly Load(Byte[] rawAssembly, Byte[] rawSymbolStore)
217 throw new NotImplementedException ();
220 public static Assembly Load(Byte[] rawAssembly, Byte[] rawSymbolStore, Evidence securityEvidence)
222 throw new NotImplementedException ();
225 public Object CreateInstance(String typeName)
227 throw new NotImplementedException ();
230 public Object CreateInstance(String typeName, Boolean ignoreCase)
232 throw new NotImplementedException ();
235 public Object CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
237 throw new NotImplementedException ();
240 public Module[] GetLoadedModules()
242 throw new NotImplementedException ();
245 public Module[] GetModules()
247 throw new NotImplementedException ();
250 public Module GetModule(String name)
252 throw new NotImplementedException ();
255 public String[] GetManifestResourceNames()
257 throw new NotImplementedException ();
260 public static Assembly GetExecutingAssembly()
262 throw new NotImplementedException ();
265 public AssemblyName[] GetReferencedAssemblies()
267 throw new NotImplementedException ();
270 public ManifestResourceInfo GetManifestResourceInfo(String resourceName)
272 throw new NotImplementedException ();
275 public static Assembly Load(AssemblyName assemblyRef, Evidence assemblySecurity, String callerLocation)
277 throw new NotImplementedException ();
280 public static Assembly Load(String assemblyString, Evidence assemblySecurity, String callerLocation)
282 throw new NotImplementedException ();