Loading Assemblies at Runtime
The .NET runtime will load all assemblies referenced by the current assembly as detailed within the manifest of the dependant assembly. In plain English, a Windows Forms application will have the System.Windows.Forms.dll assembly loaded by the runtime on its behalf because the application has an explicit reference to the required assembly. However, sometimes it might be necessary to dynamically load .NET assemblies at runtime. Such uses include application extensions and various tools, such as the VS.NET IDE, which is capable of loading new .NET components for use by developers.
Loading an assembly at runtime is a powerful mechanism to extend an application. Consider an application that allows forms to be added to ...
Get C# and the .NET Framework: The C++ Perspective 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.