What is an assembly in .NET?
An assembly is a compiled deployment and versioning unit in .NET. It normally corresponds to a .dll or .exe file.
C# interview questions covering reflection, dynamic & runtime.
Open a question for the full answer, code and interview guidance.
An assembly is a compiled deployment and versioning unit in .NET. It normally corresponds to a .dll or .exe file.
A namespace is a logical naming mechanism used to organize types and avoid naming conflicts. An assembly is a compiled physical and deployment unit containing code and metadata.
C# source code is normally compiled into Common Intermediate Language, commonly called IL or CIL, together with metadata.
JIT stands for Just-In-Time compilation. The JIT compiler converts .NET Intermediate Language into native machine code that the processor can execute.
Ahead-of-Time compilation generates native code before application execution instead of relying entirely on runtime JIT compilation.
Reflection allows runtime inspection and interaction with metadata such as types, properties, methods, constructors, and attributes.
The dynamic keyword tells the compiler to defer member resolution until runtime.
ExpandoObject is a dynamic object whose members can be added and removed at runtime.
A custom attribute is a developer-defined metadata type derived from System.Attribute.
The C# compiler first analyzes source code for syntax, type correctness, and language rules. It then normally emits Intermediate Language and metadata into a .NET assembly.