INTERVIEW QUESTIONS
MICROSOFT
DOTNET
DETAILS
Question: What is Reflection?
Answer: It extends the benefits of metadata by allowing developers to inspect and use it at runtime. For example, dynamically determine all the classes contained in a given assembly and invoke their methods. Reflection provides objects that encapsulate assemblies, modules, and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. You can then invoke the type's methods or access its fields and properties. Namespace: System.Reflection
|
Question:
What is Reflection?
Answer:
It extends the benefits of metadata by allowing developers to inspect and use it at runtime. For example, dynamically determine all the classes contained in a given assembly and invoke their methods. Reflection provides objects that encapsulate assemblies, modules, and types. You can use reflection to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object. You can then invoke the type's methods or access its fields and properties. Namespace: System.Reflection Source: CoolInterview.com
to go for it first lets go for attribute def.....where it is used to add meta data and behaviour to the code in an application. NOw reflection is a kind of process that is used to pick out the attribute infromation at runtime.....that we say as a whole type information...which involves assembly, assembly name, event info, member info, module etc and further reflection is used for late binding of attribute information to the code.....and is derived from System.Reflection namespace Source: CoolInterview.com
Answered by: rajesh | Date: 2/24/2010
| Contact rajesh
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|