© 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 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.