What is reflection?

Answer Posted / kirti

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 (see System.Type.InvokeMember ) , or even create types dynamically at run-time (see System.Reflection.Emit.TypeBuilder).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is MVVM design pattern?

593


Do you know about the new features in ASP.Net MVC 4 ?

589


What are html helpers in asp.net mvc?

550


What is the mvc pattern (model view controller pattern)?

577


i have done enough testing in life but now stated developing intereset in development work,Can i think of entering into development work that too in >Net after more then 4 years of testing experiece?

1740






What is layout in mvc?

561


Explain something about model, view and controllers in asp.net mvc?

548


What is .net framework in simple terms?

532


What are the new enhancements done in default project template of asp.net mvc 4?

573


When will the .net framework 3.0 be released?

543


Why to use Html.Partial in ASP.Net MVC?

594


How we can add the CSS in ASP.Net MVC?

572


How to answer for project questions..?

2226


How do you specify comments using razor syntax?

594


What are Validation Annotations?

567