Introducing Reflection
Reflection is an important part of the .NET Framework and provides the capability for interrogating assemblies’ metadata and collecting information on types exposed by assemblies. Reflection also enables you to invoke code from external assemblies and generate code on-the-fly. You can take advantage of reflection by using objects exposed by the System.Reflection namespace. It can be particularly useful when you need to generate code according to some user input or when you are in late bound scenarios where making decisions on which code must be invoked (or generated) is something determined at runtime. Before putting your hands on code, it is necessary to get an overview of how assemblies are structured so that you can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access