Free mag vol1 | Page 619

CHAPTER 15  TYPE REFLECTION, LATE BINDING, AND ATTRIBUTE-BASED PROGRAMMING Like any namespace, System.Reflection (which is defined in mscorlib.dll) contains a number of related types. Table 15-1 lists some of the core items you should be familiar with. Table 15-1. A Sampling of Members of the System.Reflection Namespace Type Meaning in Life Assembly This abstract class contains a number of static methods that allow you to load, investigate, and manipulate an assembly. AssemblyName This class allows you to discover numerous details behind an assembly’s identity (version information, culture information, and so forth). EventInfo This abstract class holds information for a given event. FieldInfo This abstract class holds information for a given field. MemberInfo This is the abstract base class that defines common behaviors for the EventInfo, FieldInfo, MethodInfo, and PropertyInfo types. MethodInfo This abstract class contains information for a given method. Module This abstract class allows you to access a given module within a multifile assembly. ParameterInfo This class holds information for a given parameter. PropertyInfo This abstract class holds information for a given property. To understand how to leverage the System.Reflection names 6RF