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
Why should we go for entity framework?
Can you explain the page life cycle of mvc?
What is the difference between tempdata and viewbag?
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?
What is needed for running an application built on winfx on the .net framework 3.0?
What are Non Action methods in ASP.Net MVC?
what is entityclient?
what is msl?
Describe the gac in the .net framework.
What is rxjava used for?
Explain what languages does the .net framework support?
Can I add asp.net mvc testcases in visual studio express?
What is the use of the default route?
Please explain me what the project manager will ask in the interview.The interview is for senior position in .Net (5 years experience )
Can I add mvc testcases in visual studio express?