Hmm in some strange way the formatting was totally destroyed so even for me
option 1 was now more readable
second attempt to make my point clear
Hello Tim
Totally depends on your background what is easier for you to read
some people believe that this
1.
Condition
if (condition)
{
// condition is true
}
Loops
for (int i = 0; i < number; i++)
{
// loop from zero up to one less than number
}
Compare
if ((a == b) && (c == d) || (e == f))
{
// short-circuiting comparisons
}
is easier as this
2.
Condition
If condition Then
' condition is true
End If
Loops
For i As Integer = 0 To number - 1
' loop from zero up to one less than number
Next i
Compare
If a = b AndAlso c = d OrElse (e = f) Then
' short-circuiting comparisons
End If
If option 1 reads more natural to you the i would say choose C# if option 2
is more natural to you then you would probably learn VB.Net a lot faster
In terms of programming power there is almost no difference some things are
easier in C# and others are easier in VB this is due to the target audience
of the 2 languages VB is a true RAD and thus has one liners built in the
language specification to access multiple methods in the Framework classes
Some people argue that this makes VB.Net a lesser language as C# although a
VB developer could just as easy ditch the reference to the Visual Basic DLL
and a C# developer could just as easy set a reference to the Visual Basic
DLL.
If you start coding in VB.Net then at least make sure you set Option
explicit and Option strict to on this ensures that you can in a later stage
easily switch to C#
by just using curly braces and weird variable declaration
.
You might have already guessed that i am a VB coder
HTH
Michel Posseth
http:\\
www.vbdotnetcoder.com