Module.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. //
  2. // System.Reflection/Module.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.Reflection;
  11. using System.Runtime.Serialization;
  12. using System.Security.Cryptography.X509Certificates;
  13. namespace System.Reflection {
  14. [Serializable]
  15. public class Module : ISerializable, ICustomAttributeProvider {
  16. public static readonly TypeFilter FilterTypeName;
  17. public static readonly TypeFilter FilterTypeNameIgnoreCase;
  18. private IntPtr _impl; /* a pointer to a MonoImage */
  19. internal Assembly assembly;
  20. internal string fqname;
  21. internal string name;
  22. internal string scopename;
  23. internal Module () {}
  24. public Assembly Assembly {get {return assembly;}}
  25. public virtual string FullyQualifiedName {get {return fqname;}}
  26. public string Name {get {return name;}}
  27. public string ScopeName {get {return scopename;}}
  28. public virtual Type[] FindTypes(TypeFilter filter, object filterCriteria) {
  29. return null;
  30. }
  31. public virtual object[] GetCustomAttributes(bool inherit) {
  32. return MonoCustomAttrs.GetCustomAttributes (this, inherit);
  33. }
  34. public virtual object[] GetCustomAttributes(Type attributeType, bool inherit) {
  35. return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
  36. }
  37. public FieldInfo GetField(string name) {
  38. return null;
  39. }
  40. public FieldInfo GetField(string name, BindingFlags flags) {
  41. return null;
  42. }
  43. public FieldInfo[] GetFields() {
  44. return null;
  45. }
  46. public MethodInfo GetMethod(string name) {
  47. return null;
  48. }
  49. public MethodInfo GetMethod(string name, Type[] types) {
  50. return null;
  51. }
  52. public MethodInfo GetMethod( string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) {
  53. return null;
  54. }
  55. protected virtual MethodInfo GetMethodImpl( string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers) {
  56. return null;
  57. }
  58. public MethodInfo[] GetMethods() {
  59. return null;
  60. }
  61. public virtual void GetObjectData( SerializationInfo info, StreamingContext context) {}
  62. public X509Certificate GetSignerCertificate() {
  63. return null;
  64. }
  65. public virtual Type GetType(string className) {
  66. return null;
  67. }
  68. public virtual Type GetType(string className, bool ignoreCase) {
  69. return null;
  70. }
  71. public virtual Type GetType(string className, bool throwOnError, bool ignoreCase) {
  72. return null;
  73. }
  74. public virtual Type[] GetTypes() {
  75. return null;
  76. }
  77. public virtual bool IsDefined( Type attributeType, bool inherit) {
  78. return MonoCustomAttrs.IsDefined (this, attributeType, inherit);
  79. }
  80. public bool IsResource() {
  81. return false;
  82. }
  83. public override string ToString() {
  84. return "Reflection.Module: " + name;
  85. }
  86. }
  87. }