Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What are the strengths that characterize C# than vb.net ?

user-image
Question ajoutée par Mohamed Yousif , .Net developer , Free Lancer
Date de publication: 2014/08/25
Sreeyush Sudhakaran
par Sreeyush Sudhakaran , TECHNICAL ANALYST(SOFTWARE ENGINEER) , NATIONAL BANK OF ABUDHABHI
Utilisateur supprimé
par Utilisateur supprimé

    Allows blocks of unsafe code (like C++/CLI) via the unsafe keyword, support for pointers, Multi-line and intra-line comments . 

Iterative for-loops can contain multiple conditionals 

The get & Set property may implement separate interfaces. In VB you'd have to define two properties instead: a read-only property implementing one interface, and a write-only property implementing the other interface.  

Can use the coalesce operator ?? to return the first non-null value (ex. null ?? null ??1 returns1).

 

To name a few

Rameez Ahmed Sayad
par Rameez Ahmed Sayad , .Net Consultant , Proximus Luxembourg

Apart from the features differences which are minimal , I like the syntax , I prefer the brackets to the dim end and LINQ especially seems a lot easier in C# . Refactoring also seems more visible to me in C#.

More Questions Like This