Summary
This chapter covered one of the most important topics in the .NET development, reflection. You saw what reflection is and how assemblies are structured. Talking in code terms, you then saw how to interrogate assembly information and how to reflect types to inspect types and type members exposed by an entire assembly or by a single type. Next, dynamically invoking code from an external assembly without the need of having a reference to that assembly was explained. You then learned how to take advantage of the System.Reflection.Emit namespace to create an assembly, types, and members at runtime. Finally, you learned about caller information, which enables you to retrieve information such as the name of the file where a code block is executed, ...
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