A
Andy
Any good resources regarding benefitis by using C3 over VB?
/Andy
/Andy
There are not many. You can use unsafe code with C#. That's the biggest
Andy said:Any good resources regarding benefitis by using C3 over VB?
/Andy
Any
language that says "End Sub" where a simple "}" would do is just too
crooked to use, imo.
jeremiah johnson said:the biggest reason i've seen to use C# over VB is that C# jobs always pay
more.
and the VB syntax is so backwards I won't even touch it anymore. Any
language that says "End Sub" where a simple "}" would do is just too
crooked to use, imo.
Carlos J. Quintero said:Other VB.NET people think the same about typing ";" all the time when you
can type nothing ;-)
Andy wrote:
the biggest reason i've seen to use C# over VB is that C# jobs always
pay more.
Max said:That's reason enough for me to use C#![]()
VB.net is best fit for the following reasons:
1) You have to type less. Consider the following statements to declare a
SqlConnection
VB.net
=====
Dim mycon As New SqlConnection
Taking into consoderation intellisense and auto title case, you will have to
PRESS 17 KEYS
C#
==
SqlConnection mycon = new SqlConnection();
You have to press 26 + 2 (capital letter) = 28 keys even by using
intellisense.
And the most irritating this is, you have to remember the object name
SqlConnection (consider this for other objects whose name you might not
remember)
IsNumeric etc.
==========
You have many functions like IsNumeric, Mid etc. in VB.net which are handy.
You have to write separate function in C# for using the above. Allright you
people must be thinking that using these functions are not PURE (in terms of
.Net) , these are very very handy.
Optional Parameters
=============
VB.net supports optional parameters, but C# does not support them. Although
people might argue that you can use overloaded functions instead, these is
one catch to it. Say for example the function a hundred lines of code and the
optional parameter is just going to be used for checking in an if condition
(most optional parameters are used for that). In C# you have to do this by
overloading the function and in that process paste the hundred lines of code
again. What a waste... ?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.