System.Reflection.Emit used for building new types at runtime - Csharp.Net

Q.  For building new types at runtime which class can be used?
- Published on 31 Aug 15

a. System
b. System.Object
c. System.NewClass
d. System.Reflection.Emit.

ANSWER: System.Reflection.Emit.
 
For building new types at runtime System.Reflection.Emit namespace will be used. This namespace provides you a number of classes which you can use to build your type. Some of the important classes in this namespace are

• AssemblyBuilder
• ModuleBuilder
• ConstructorBuilder
• MethodBuilder
• EventBuilder
• PropertyBuilder

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)