Chapter 12. Learning About Application Configuration and Dynamic Loading

All of the examples in the preceding chapters have demonstrated how to use an application with a specific component. You knew which type to instantiate, which interface to use, and which assembly to reference. In these cases, you, as the developer, are in complete control, and when your application is built, all of the assemblies pop out as a nice, neat package.

But what works for the developer might not necessarily work for others. Let's go back to the lighting system presented in Chapter 8. We created a kernel that was responsible for turning on and off the lights. The implementations of the individual rooms were in a predetermined assembly with a specific name. This architecture ...

Get Beginning C# 2008: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.