Module.cs 2.5 KB

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