Type Summary





Type Summary


public class Module : ISerializable, ICustomAttributeProvider

    {

    // Fields

 MS CF public static readonly TypeFilter FilterTypeName = 

                                         System.Reflection.TypeFilter;

 MS CF public static readonly TypeFilter FilterTypeNameIgnoreCase = 

                                         System.Reflection.TypeFilter;



    // Properties

       public Assembly Assembly { get; }

       public virtual string FullyQualifiedName { get; }

       public string Name { get; }

    MS CF public string ScopeName { get; }



       // Methods

    MS CF public virtual Type[] FindTypes(TypeFilter filter, 

                                object filterCriteria);

    MS CF public virtual object[] GetCustomAttributes(bool inherit);

    MS CF public virtual object[] GetCustomAttributes(Type attributeType, 

                                  bool inherit);

       CF public FieldInfo GetField(string name);

       CF public FieldInfo GetField(string name, BindingFlags bindingAttr);

       CF public FieldInfo[] GetFields();

          public FieldInfo[] GetFields(BindingFlags bindingAttr);

       CF public MethodInfo GetMethod(string name);

    MS CF public MethodInfo GetMethod(string name, BindingFlags bindingAttr,

                             Binder binder, CallingConventions callConvention,

                             Type[] types, ParameterModifier[] modifiers);

       CF public MethodInfo GetMethod(string name, Type[] types);

    MS CF protected virtual MethodInfo GetMethodImpl(string name,

                                        BindingFlags bindingAttr, Binder binder,

                                        CallingConventions callConvention, 

                                        Type[] types, 

                                        ParameterModifier[] modifiers);

       CF public MethodInfo[] GetMethods();

          public MethodInfo[] GetMethods(BindingFlags bindingAttr);

    MS CF public virtual void GetObjectData(SerializationInfo info,

                               StreamingContext context);

    MS CF public X509Certificate GetSignerCertificate();

       MS public virtual Type GetType(string className);

    MS CF public virtual Type GetType(string className, bool ignoreCase);

    MS CF public virtual Type GetType(string className, bool throwOnError,

                               bool ignoreCase);

       MS public virtual Type[] GetTypes();

    MS CF public virtual bool IsDefined(Type attributeType, bool inherit);

    MS CF public bool IsResource();

          public override string ToString();

       }


JM It was noticed at some point during the standardization process that while C# does not allow overloading on return types, the CLI does allow it (as well as other languages). The GetMethod methods in class Module do not allow the retrieval of a singular MethodInfo based on this one distinction.

BA The GetType() overloads have two design problems. First, the methods are not overloaded in a consistent order; it should have been

public virtual Type GetType(string className); public virtual Type GetType(string className, bool ignoreCase); public virtual Type GetType(string className, bool ignoreCase, bool throwOnError);

Second, as Danny Thorpe commented on WebProxy, using enums would have been more self-documenting.



     Python   SQL   Java   php   Perl 
     game development   web development   internet   *nix   graphics   hardware 
     telecommunications   C++ 
     Flash   Active Directory   Windows