Chapter 11. Reflection Fundamentals


Reflection is a runtime facility that allows you to write code that can interrogate data types at runtime. This means that you can obtain information about the data type of variables. More than that, it means that you can obtain information about class members, properties, methods, fields, constructors, and much more.

This chapter introduces you to the basics of reflection: what it is and how it works. Then, you will see how to use reflection to work with methods, members (fields, properties, and so on), events and more. Finally, you will ...

Get Microsoft® Visual C# 2005 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.