Module.cs 2.6 KB

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