Chapter 24. Reflection and Creating Plugins
Reflection is generally all about getting information about code. However, using the reflection APIs, you can dynamically execute code you load from an arbitrary assembly, giving you an easy way to implement a plugin architecture in your app.
Enumerate Types in an Assembly
Solution: Reflection is most commonly used for discovery, and nearly everything in .NET is discoverable.
This snippet of code populates a System.Windows.Forms.TreeView ...
Get C# 4.0 How-To 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.