Explain and distinguish between reflection and dynamic?



Explain and distinguish between reflection and dynamic?..

Answer / maanya

Both reflection and dynamic are used when we want to operate on an object during runtime.
Reflection is used to inspect meta-data of an object. It also has the ability to invoke members of an object on runtime.
Dynamic is a keyword which was introduced in .NET 4.0. It evaluates object calls during runtime. So until the method calls are made compiler is least bothered if those methods / properties etc exist or not.
Dynamic uses reflection internally. It caches the method calls made thus improving performance to a certain extent.
Reflection can invoke both public and private members of an object while dynamic can only invoke public members.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Net Dynamics Interview Questions

What is system.dynamic?

0 Answers  


Explain reflection?

0 Answers  


What are the differences between reflection and dynamic?

0 Answers  


Explain dynamic?

0 Answers  


List the names of binders provided by .net framework 4.0?

0 Answers  






What is dynamic object interoperability services provided by dlr to clr?

0 Answers  


What is dynamic language runtime (dlr)?

0 Answers  


Define object binder?

0 Answers  


What is call site caching services provided by dlr to clr?

0 Answers  


What are the advantages of dlr?

0 Answers  


What is ruby binder?

0 Answers  


Explain the difference between dynamic and var data types?

0 Answers  


Categories