---
title: "What is a dynamic assembly?"  
description: "What is a dynamic assembly?"  
author: "Pushpendra Singh"  
published: 2010-10-25  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/154/what-is-a-dynamic-assembly  
category: ".net"  
tags: [".net"]  
reading_time: 1 minute  

---

# What is a dynamic assembly?

A dynamic assembly is created dynamically at run time when an application requires the types within these assemblies.

## Answers

### Answer by Amit Singh

Reflection emit provides many ways to create dynamic assemblies. Dynamic assemblies can be created using the various \
System.AppDomain.DefineDynamicAssembly methods. **DefineDynamicAssembly** returns an AssemblyBuilder object. **DefineDynamicAssembly** requires the caller to specify the AssemblyBuilder Access enumeration value. The enumeration value specifies whether the dynamic assembly will be run only, saved only, or run and/or saved. Some of the methods require the caller to supply evidence, which is the set of information that constitutes input to security policy decisions, such as which permissions can be granted to code. Other methods require the caller to request permissions. Three kinds of permission requests exist: required, optional, and refused.

### Answer by Pushpendra Singh

A dynamic assembly is created dynamically at run time when an application requires the types within these assemblies.


---

Original Source: https://www.mindstick.com/interview/154/what-is-a-dynamic-assembly

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
