Explain and distinguish between reflection and dynamic?
Submitted by: AdministratorBoth 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.
Submitted by: Administrator
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.
Submitted by: Administrator
Read Online Net Dynamics Job Interview Questions And Answers
Top Net Dynamics Questions
☺ | What is Middleware Net Dynamics? |
☺ | Explain and distinguish between reflection and dynamic? |
☺ | What is DynamicObject? |
☺ | Explain the difference between dynamic and var data types? |
☺ | What is ExpandoObject? |
Top Middleware Categories
☺ | MQSeries Interview Questions. |
☺ | Middleware Interview Questions. |
☺ | VisiBroker Interview Questions. |
☺ | Orbix Interview Questions. |
☺ | Net Dynamics Interview Questions. |