What is reflection?
Answer Posted / swapna
All .NET compilers produce metadata about the types defined
in the modules they produce. This metadata is packaged
along with the module (modules in turn are packaged
together in assemblies), and can be accessed by a mechanism
called reflection.
The System.Reflection namespace contains classes that can
be used to interrogate the types for a module/assembly.
Using reflection to access .NET metadata is very similar to
using ITypeLib/ITypeInfo to access type library data in
COM, and it is used for similar purposes - e.g. determining
data type sizes for marshaling data across
context/process/machine boundaries.
Reflection can also be used to dynamically invoke methods (
System.Type.InvokeMember ) , or even create types
dynamically at run-timeystem.Reflection.Emit.TypeBuilder).
| Is This Answer Correct ? | 9 Yes | 9 No |
Post New Answer View All Answers
What are the 3 main components of an asp.net mvc application?
How route table has been created in ASP.NET ASP.Net MVC?
What is difference between viewbag and viewdata and tempdata?
What is difference between razor and web form engine?
How to answer for project questions..?
What is .net architecture and framework?
Explain JSON Binding?
What is mapping in entity framework? : Entity framework
Is dapper faster than entity framework?
What is entity framework firstordefault?
What is page life cycle?
What is .net framework in simple terms?
what do you mean by table-per-type?
What is the significance of nonactionattribute?
What is entity framework used for?