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
Explain the methods used to render the views in mvc?
what is linq to entities?
what is model first approach?
What is namespace of asp.net mvc?
How does the .net framework 3.0 relate to the .net framework 2.0?
Explain Model, view and Controllers in Asp.Net MVC?
What are the new features 3.5 framework against with the tool?
What is edm (entity data model)? : Entity framework
How to bind table colum with gridview column?
Explain linq to entities? : Entity framework
What is the mvc pattern (model view controller pattern)?
how can you tell ef to have a different table or column name than that defined for the class?
What does a viewmodel do?
How to return the JSON from action method in ASP.Net MVC?
What is route config?