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

If I have multiple filters implemented, what is the order in which these filters get executed?

518


What is the use of action filters in an mvc application?

600


How the ‘page lifecycle’ of ASP.Net MVC does works?

585


What are the 2 popular asp.net mvc view engines?

512


What symbol would you use to denote, the start of a code block in razor views?

559






Can I remove .net framework?

539


Can you please explain the request flow in ASP.NET MVC framework?

617


i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?

1808


What is session state management?

557


Is it possible to create a custom filter?

561


What is edm (entity data model)? : Entity framework

540


Does razor engine supports for tdd?

732


Which are the important namespaces used in ASP.Net MVC?

594


How do I install .net framework?

522


Is http stateful or stateless?

542