ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What is the difference between keywords ‘var’ and ‘dynamic’ ?

user-image
تم إضافة السؤال من قبل Mohannad Bakbouk , Full Stack Web Developer , Almohtaseb
تاريخ النشر: 2016/10/19
Nouran Adel
من قبل Nouran Adel , IT Engineer , Export Development Authority

   var in .NET 3.5

dynamic in .NET 4

Khuram Nawaz Khayam
من قبل Khuram Nawaz Khayam , Software Desing and Development Engineer , Fiverr

var is a keyword that lets the compiler to choose correct type prior to starting the debugging. while dynamic is a static type keyword that chooses the type runtime.

محمد جمال
من قبل محمد جمال , Senior .Net C# Web Developer , JIC

var: All the methods, property or any other information are available at compile time and dynamic in run time only

mohamed mursheed
من قبل mohamed mursheed , IT Manager , Hotel Sunrise Groups

Variables declared with var are implicitly but statically typed. Variables declared withdynamic are dynamically typed. ... When using the 'varkeyword, the type is decided by the compiler at compile time, whereas when using the 'dynamic'keyword, the type is decided by the runtime

Umair Khan
من قبل Umair Khan , Web Developer , Innovative Designers

In var type compiler will specify its type at compile time. and dynamic type checks will be performed during runtime not by the compiler.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟