© Ali Asad and Hamza Ali 2017

Ali Asad and Hamza Ali, The C# Programmer’s Study Guide (MCSD), 10.1007/978-1-4842-2860-9_14

14. Assembly and Reflection

Ali Asad and Hamza Ali1

(1)Sialkot, Pakistan

Assembly is an important part in any .NET application development, while reflection is used to read all the information of an assembly at runtime. In this chapter, we'll learn:

  1. Assembly

  2. Creation and Use an Assembly

  3. Installing an Assembly in a Global Assembly Cache

  4. Reflection in C#

  5. Creating and Using Custom Attributes

Introduction to Assemblies

An assembly is the output of the compiled code. It’s a physical code that is used to deploy an application. In a .NET, assembly it is typically a Dynamic Link Library (DLL) or an Executable (EXE) file.

When Code is Compiled ...

Get The C# Programmer’s Study Guide (MCSD): Exam: 70-483 now with O’Reilly online learning.

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