O'Reilly logo

C# 4.0 How-To by Ben Watson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required