Wondering what .net language others are using

Carl Uman

Diamond Member
Jan 29, 2000
6,008
2
81
Moving from CF to asp.net and choosing between vb and c#. Just wondering what you all are using.

EDIT
Thanks for feedback :)
 

Hugenstein

Senior member
Dec 30, 2000
419
0
0
They are 99% the same, just choose the one with the syntax that is more comfortable to you. Once you are comfortable with C# or VB.Net switching to the other is very easy.
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
Check out the resources at www.CodeProject.com if you haven't already.

Our Windows client software still is Win32 / MFC based C++ using Visual C++ and our servers use Perl and PHP, so I only play with c# on my own time.

I'd pick c# just because it's a cleaner design and there will probably be much more well-written code than VB at sites like CodeProject that you can adapt to your own projects.
 

Carl Uman

Diamond Member
Jan 29, 2000
6,008
2
81
A big part of the reason I'm asking is because I would prefer c#.net but I think others in the office would rather do vb.net. We will likely do whichever most other businesses in the area are doing. Was hoping this would give me an idea of what is on the market. I'm going to check on my next INETA users group meeting but I think most (at least 80%) of them are using c#.net

Thanks
 

torpid

Lifer
Sep 14, 2003
11,631
11
76
They aren't really the same anymore. C#'s support of nullable types is much, much better than VB's and to me that is a huge difference. Unfortunately we use VB.net at work here. I'd recommend C# instead.
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Originally posted by: torpid
They aren't really the same anymore. C#'s support of nullable types is much, much better than VB's and to me that is a huge difference. Unfortunately we use VB.net at work here. I'd recommend C# instead.

The two language are practically the same, its just minor syntax differences as most say.


Yes even Nullable types.

VB
Dim i As Nullable(Of Int32)

C#
Nullable<int> i;


The only thing I like more about VB.Net is when dealing with Events I can easily add a Handles clause to an Event Sub instead of adding a delegate.

Sub EventSub() Handles uiButton.Click, uiButton2.Click

End Sub

vs.
// this code is using found in the Designer file and its a pain to edit this file
uiButton.Click += new System.Delegate(EventSub)
uiButton2.Click += new System.Delegate(EventSub)

I like the C# comment characters better than VB.net
/* */ is better than anything VB has

 

torpid

Lifer
Sep 14, 2003
11,631
11
76
I'm not referring to how to declare. I'm referring to ? (edit: and ?? too) in C#. I am fairly certain there is no equivalent operator in VB. There are numerous MS blog entries about this, and complaints from non-MS developers that VB's equivalents were never done.