May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Before showing Reflection capabilities, a good idea is to prepare an appropriate code example. First, create a new class library project and name it People. The goal of the library is to expose a special implementation of the Person class, with interfaces and enumerations implementations for a better demonstration on Reflection. When ready, write the code in Listing 47.1, which is quite simple.
Listing 47.1 Preparing Code for Reflection

Build the project; then add a new Console project to the current solution. Finally add a reference to the People class library so that, just for demo purposes, you can load the assembly ...
Read now
Unlock full access