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
explain why t4 entity is important in entity framework?
Explain representational state transfer (rest) in detail?
What is the use of action filters in an mvc application?
What is viewbag title?
How we can add the css in mvc?
Why is the .net framework 3.0 a major version number of the .net framework if it uses the .net framework 2.0 runtime and compiler?
mention what are the various methods provided by the dataset object to generate xml?
Can you use Razor code in Javascript in ASP.Net MVC?
Describe the gac in the .net framework.
What is filters in web api?
What you mean by routing in mvc?
what is linq to entities?
How we can multiple submit buttons in ASP.Net MVC
What is Separation of Concerns in ASP.NET ASP.Net MVC?
Are there any parts of the .net framework 3.0 that only work on windows vista?