Microsoft Learning : Difference between var and dynamic in C#?

Microsoft Learning : Difference between var and dynamic in C#?

MSDEVBUILD

54 года назад

194 Просмотров

Var :
The implicitly typed variable is introduced in C# 3.0. The implicitly typed variable is not designed to replace the normal variable declaration, it is designed to handle some special-case situations like LINQ.
Dynamic :
In C# 4.0, a new type is introduced that is known as a dynamic type. It is used to avoid compile-time type checking. The compiler does not check the type of the dynamic type variable at compile-time, instead of this, the compiler gets the type at the run time.

About Suthahar:
Suthahar Jegatheesan is a Mobile and Cloud Specialist/Architect, Microsoft Certified Trainer, and Microsoft Author and he has 15 + years of IT experience as a Technology Consultant /Programmer/Developer in the IT industry. Suthahar is an industry luminary focused on AI, Computer Vision, Bot, Machine Learning, MAUI, Azure, Xamarin, and Web & Emerging User Experiences as a subject matter expert (SME) in implementation, architecture, development, and administration. Join My channel and please do the subscription to get access to all the Free Video

MSDEVBUILD author by SUTAHAHR JEGATHEESAN, here I am sharing Cloud, Mobile, and Microsoft AI-related real-time use of video, the language is English and Tamil

MSDEVBUILD: English version

📰 https://www.youtube.com/channel/UCwoWf6zryMFwEyOh2UYLSwA

MSDEVBUILD: Tamil Version

📰 https://www.youtube.com/channel/UCPwZsK00EZDfIrj5DCYyuPA

Nikhi and Bhavi:

Nikhi and Bhavi channel is my personal blog, My Foreign company job lifestyle and my kid's growth and learning activity, and Common entertainment content.
📰 https://www.youtube.com/channel/UCDrVJHz36TVZ3eFP8n-KLSg

Follow:
📄 Website: https://www.msdevbuild.com
👨‍💻 GitHub: https://github.com/jssuthahar
🦜 Twitter: https://twitter.com/jssuthahar
🦜 About me - http://suthahar.msdevbuild.com/

Disclaimer: This channel, videos, and streams are created in my spare time and are a product of me(SUTHAHAR JEGATHEESAN) .They are NOT officially affiliated or endorsed by my employer in any way. Opinions and views are my own.

Тэги:

#What's_the_difference_between_dynamic_(C#_4)_and_var? #msdevbuild #suthahar #msbuild #dynamic_type #var_type
Ссылки и html тэги не поддерживаются


Комментарии: