Microsoft Visual C#.NET 2003 Kick Start
Reflection is a set of techniques that lets code read and work with its own metadata, or that of other code, and it's supported by classes in the System.Reflection namespace, such as System.Reflection.MemberInfo (which is the class that we're going to use to read metadata from the custom Author attributes we just created). There are four parts to reflection:
We'll take a look at each of these four techniques in the remainder of this chapter. |