Home TechnologyProgramming Subscribe to RSS

What Are The Differences Between VB.Net And C# In .Net 2005?

Answer Question

1 Answer - Sort by: Date | Rating

    VB.Net is more like English in its syntax.  C# allows you to be more concise.  A new programmer might find VB somewhat easier to learn.

    The lines below show example of how you could express the question "does the checking account have enough money to pay this check" in VB.Net and C#

    VB.Net:
    If AccountBalance >= CheckAmount Then
          PayCheck
       Else
          ReturnCheck
    End If

    C#
    if(AccountBalance >= CheckAmount)
       PayCheck();
    else
       ReturnCheck();
    0 0

    Boris 

    answered 3 years ago

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International