May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Reflecting all types within an assembly can be useful, but probably in most cases you will be interested in reflecting a single type. To accomplish this you need the instance of a System.Type; then invoke members described in the previous section. For example, imagine you want to inspect members from the Person class. You first get the type instance, and then you can perform reflection as demonstrated by the following code:

The preceding code produces the following result:

For more details, the MSDN documentation on the ...
Read now
Unlock full access