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
What is action methods in web api?
What is difference between razor and web form engine?
What symbol would you use to denote, the start of a code block in razor views?
What is edm (entity data model)? : Entity framework
Explain the methods used to render the views in mvc?
what do you mean by navigation property?
Describe the .net framework architecture.
Explain tempdata in mvc?
What is the greatest advantage of using asp.net mvc over asp.net webforms?
What are the levels at which filters can be applied in an asp.net mvc application?
Explain what is asp.net mvc?
Explain peek method in tempdata in asp.net mvc?
What is .net framwork?
What is the use of the default route {resource}.axd/{*pathinfo} ?
What type of filter does outputcacheattribute class represents?