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 is attribute routing in mvc?
What is renderbody?
Explain two instances where routing is not implemented or required?
Explain the types of Scaffoldings.
Explain the advantages of asp.net mvc over asp.net?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What is entity client data provider? : Entity framework
What is Dependency Injection in ASP.Net MVC
What are the 3 main components of an asp.net mvc application?
Is .net framework going away?
Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?
Is the following route definition a valid route definition? {controller}{action}/{id}
What is the advantage of using asp.net routing?
Can you explain renderbody and renderpage in asp.net mvc?
What is meant by domain model?