filmov
tv
Dynamic and Var Keyword In C#
![preview_player](https://i.ytimg.com/vi/4g3_Vr1I0Hg/maxresdefault.jpg)
Показать описание
Var is statically typed variable and the data type is known in compile time itself.
Dynamic is dynamically typed and the data type is known in run time only.
C# allows variables to be declared as explicit or implicit. Implicit local variables like var are strongly typed just as if you had declared the type yourself. But why do we need it, anyway?
I hope you enjoyed this video, please like share and subscribe and remember to press the bell icon. Thanks for watching.
Dynamic is dynamically typed and the data type is known in run time only.
C# allows variables to be declared as explicit or implicit. Implicit local variables like var are strongly typed just as if you had declared the type yourself. But why do we need it, anyway?
I hope you enjoyed this video, please like share and subscribe and remember to press the bell icon. Thanks for watching.