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
Why should we go for entity framework?
How we can handle the exception at controller level in ASP.Net MVC?
What is entity framework? : Entity framework
Explain the 'page lifecycle' of an ASP.NET MVC?
What are Action Methods in ASP.NET MVC?
What are the versions of .net framework?
explain how you can load related entities in ef (entity framework)?
Explain bundle.config in mvc4?
Can any particular component of .net framework 3.0 be removed?
Mention what is the difference between “ActionResult” and “ViewResult” ?
Which .net framework is installed?
what is eager loading?
What is meant by tempdata in mvc?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?
What is difference between html.beginform and ajax.beginform?