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

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

متابعة

What programming language can better ASP.NET use c# or VB.NET?

user-image
تم إضافة السؤال من قبل Nour Amoudi , System Engineer , Mercedes Benz (Daimler AG)
تاريخ النشر: 2015/01/30
anas alhashki
من قبل anas alhashki , Senior Full Stack Engineer , Industrial Motor Power Corporation

The languages are pretty much the same, at best dialects of each other. Personally, I prefer C#, and you'll find a greater community in C#. Contrary to other answers, there is nothing the one language does significantly better or differently from the other. However, there are some things both languages do better than the other, Things VB do better:

  • Named indexers
  • Different operators for inheriting base classes and implementing interfaces. These are not the same thing
  • Syntax for interface implementation of methods. Same method can implement several interfaces, even with the interface methods having different names
  • Ability to execute code in inheriting constructors before calling base class constructor
  • The "With" operator (seriously, I miss this all the time in C#)

Things C# does better

  • String escaping. You need this.
  • Lambda syntax. This is a huge mess in VB.
  • Less verbose syntax (e.g. no need to specify that you are passing an argument by value)
  • "out" keyword for one-way passing of reference parameter
  • Syntax for extension methods does not rely on annotations
  • Syntax difference for calling indexer vs. method (not the same thing)
  • Syntax difference for assignment vs. equality (also not the same thing)
  • Type initializers

And probably a lot of more stuff, that’s all I can think of right now :)

 

Muhammad Aleem Akbar
من قبل Muhammad Aleem Akbar , Dynamic CRM Developer , Tech Implement

C# is better suited for developing enterprise application versus VB.NET

Sreeyush Sudhakaran
من قبل Sreeyush Sudhakaran , TECHNICAL ANALYST(SOFTWARE ENGINEER) , NATIONAL BANK OF ABUDHABHI

C# is preferred in industrial standards , how ever if you want to use more system internals and inter op services that your website earlier used it is better to continue in VB .NET itself.

 

VB .NET compiler is bit slower than C# rest all remains same in both language standards

Ubaid sayeed Mohd abdul sayeed
من قبل Ubaid sayeed Mohd abdul sayeed , Senior Programmer , Moksha solutions

C sharp is the language easy debugged and syntaxable.

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

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