Explain and distinguish between reflection and dynamic?
Answer Posted / 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 View All Answers
What is python binder?
What is system.dynamic?
What is expandoobject?
What are the difference between dynamic and var data types?
What things are performed by dynamic objects?
Name the class we used to convert the data types?
Explain the difference between dynamic and var data types?
Which class we used to convert the data types?
What is javascript binder?
What is com binder?
What are dlr binders?
Define com binder?
What is ruby binder?
Explain dynamic?
Define object binder?