Summary

Reflection is a good way to browse for information about any particular piece of code. This chapter showed examples of how virtually anything about the code can be discovered through reflection. It looked at attributes and how they can be used and customized to extend and enhance any application. This chapter also discussed late-binding and how it is implemented under .NET and some possible applications for late-binding. It examined one of the key consumers of the reflection services: serialization. The two types of serialization that are used by the .NET Framework and implemented by the CLR were explored. Finally, this chapter discussed some methods of dynamically generating code by having code generate code. Without reflection, the ...

Get .NET Common Language Runtime Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.