What is the difference between VAR and dynamic?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at Harvard University, Lives in Boston.
However, var is statically typed, and dynamic is not. ... A var is an implicitly typed variable that is inferred by the compiler, but it is just as strongly typed as if you had explicitly typed it yourself using --int test2 = 2;--. A dynamic variable bypasses all compile-time type checking and resolves everything at runtime.Jun 16, 2010
2023-06-12 02:02:31
评论(499)
Helpful(122)
Helpful
Helpful(2)

Wyatt Morgan
QuesHub.com delivers expert answers and knowledge to you.
However, var is statically typed, and dynamic is not. ... A var is an implicitly typed variable that is inferred by the compiler, but it is just as strongly typed as if you had explicitly typed it yourself using --int test2 = 2;--. A dynamic variable bypasses all compile-time type checking and resolves everything at runtime.Jun 16, 2010