What is an Assembly
suggest changeAssemblies are the building blocks of a Common Language Runtime (CLR) application. Every type you define, together with its methods, properties, and their bytecode, is compiled and packaged inside an assembly.
using System.Reflection;
Assembly assembly = this.GetType().Assembly;
Assemblies are self-describing. They contain types, methods, and their IL, and also the metadata needed to inspect and consume them, both at compile time and at run time:
Assembly assembly = Assembly.GetExecutingAssembly();
foreach (var type in assembly.GetTypes())
{
Console.WriteLine(type.FullName);
}
An assembly name describes its identity:
Console.WriteLine(typeof(int).Assembly.FullName);
// Will print: "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
If this name includes a PublicKeyToken, it is called a strong name. Strong-naming an assembly is the process of creating a signature by using the private key that corresponds to the public key distributed with the assembly. This signature is added to the Assembly manifest, which contains the names and hashes of all the files that make up the assembly, and its PublicKeyToken becomes part of the name. Assemblies that have the same strong name should be identical; strong names are used in versioning and to prevent assembly conflicts.