Assembly.cs 5.4 KB

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