Summary

In this chapter, you examined the concept of a .NET assembly from the perspective of C# applications that access assembly information. Access to assembly information is performed through the Assembly class. The Assembly class exposes naming information for the assembly and enables assemblies to be loaded dynamically. Types managed by the assembly can be created on the fly.

You can apply the concepts illustrated in this chapter to build some very powerful .NET applications. Some of the tools that ship with the .NET Framework, such as the ILDASM tool, use a combination of Assembly class methods and other classes in the System.Reflection namespace to provide a fully detailed view of already compiled assemblies. You can obtain a great deal of information from assemblies, even if the source code used to build the assembly is not available, using the methods in the Assembly class and other reflection classes.

0 0

Post a comment