Explain the difference between dynamic and var data types?



Explain the difference between dynamic and var data types?..

Answer / Pradeep Chandra Bahuguna

In C#, 'dynamic' is a keyword that indicates that the compiler will not check type safety at compile-time. However, it still performs some runtime checks. On the other hand, 'var' is used to infer the variable's data type automatically from the right-hand side of an assignment statement.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Net Dynamics Interview Questions

What is object binder?

1 Answers  


What is dynamicobject?

1 Answers  


Define python binder?

1 Answers  


What is python binder?

1 Answers  


What is expression trees services provided by dlr to clr?

1 Answers  


Define com binder?

1 Answers  


Define javascript binder?

1 Answers  


List the advantages of dlr?

1 Answers  


What is system.dynamic?

1 Answers  


What are the difference between dynamic and var data types?

1 Answers  


Explain and distinguish between reflection and dynamic?

1 Answers  


Define object binder?

1 Answers  


Categories