Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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

user-image
Question added by Mohamed Yousif , .Net developer , Free Lancer
Date Posted: 2014/08/25
Sreeyush Sudhakaran
by Sreeyush Sudhakaran , TECHNICAL ANALYST(SOFTWARE ENGINEER) , NATIONAL BANK OF ABUDHABHI
Deleted user
by Deleted user

    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
by 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