December 2003
Intermediate to advanced
504 pages
10h 42m
English
The System.Reflection namespaces provide classes for introspecting currently loaded classes and their associated methods and fields. Also, this namespace provides a dynamic way of creating instances of a particular class. The Reflection namespace is particularly useful for tool developers. For instance, if you were to build your own Visual C# or Visual Basic.NET code editor and would like to enable IntelliSense autocomplete functionality for classes and methods, you would use the Reflection class library to achieve that.
In this section, you'll take a quick look at the System.Reflection.Type class, which provides methods for introspecting class definitions. For instance, Listing 4.9