System.Reflection namespace in C# The System.Reflection namespace in C# contains the types that provide information about assemblies, modules, members, parameters, and other items in the code by examining the metadata. The Assembly class in this namespace represents an assembly. Typically, you can access it using the Assembly property on a Type.
An assembly's identity consists of four items −
A fuller qualified assembly name is a string, and it includes these identifying items in the format −
simple-name, Version=version, Culture=culture, PublicKeyToken=public-key
Assembly assembly = typeof (Person).Assembly; // Person is a class name // Prints: c-sharp, Version=22.214.171.124, Culture=neutral, PublicKeyToken=null Console.WriteLine(assembly.FullName);
Assembly Loading is the process of loading an assembly from a known location. Typically, the CLR can load the assembly using its full name. This process is called assembly resolution. Assembly resolution is performed when the CLR needs to resolve a dependency or you, as a programmer, want to load an assembly dynamically, using the Assembly.Load(assemblyName) method.