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


Please Help Members By Posting Answers For Below Questions

Can I add mvc testcases in visual studio express?

594


How large is the .net framework 3.0? Does this change make the release larger?

552


Explain dependency resolution?

621


Is .net framework backwards compatible?

607


What are the benefits of .net framework?

563






Explain peek method in tempdata in asp.net mvc?

587


What is .net architecture?

546


What is clr? How does work clr & wht is work of clr?

562


Does razor engine supports for tdd?

736


What is needed for running an application built on winfx on the .net framework 3.0?

516


What is entitytype? : Entity framework

530


How to make sure Client Validation is enabled in ASP.Net MVC

564


Explain how you can send the result back in JSON format in MVC?

578


what is conceptual model?

602


Which version of the common language runtime (clr) does the .net framework 3.0 use?

565