Page view counter

Why c# ??

Last post 01-26-2007 7:50 AM by zaidqais. 3 replies.

Sort Posts:

  • Why c# ??

    01-25-2007, 10:03 AM
    • Loading...
    • zaidqais
    • Joined on 05-27-2006, 8:40 AM
    • Posts 56
    • Points 65
    hi
    i have a question
    why most books and samples of asp.net 2.0 use C# code
    i am programmer VB.Net and i think vb.net able to cover every aspect in asp.net 2.0
    so why they use c# more than VB.net
    if the programmers continue using C# so often , i should learn it , shouldn't I ?
    Thank you
  • Re: Why c# ??

    01-25-2007, 10:51 AM
    Answer
    • Loading...
    • mcmcomasp
    • Joined on 03-08-2004, 4:45 PM
    • Toronto
    • Posts 1,377
    • Points 6,729

    the choice of vb or C# is usually a preference one, meaning that you CAN usually do anything with both languages. 

    This article compares the two and talks about why the author chooses one over the other, maybe it will help you.

    http://west-wind.com/weblog/posts/202.aspx

    Also if you start learning C# you will notice many similarities between VB.NET and C#, i mean all the .NET classes are used in the same way and lots of the code is very similar.

    C# is fun to learn and pretty easy to pick up, especially if you know VB, so give it a shot if you got the time

    hth,

    mcm

  • Re: Why c# ??

    01-25-2007, 9:11 PM
    Answer

    hi mcm,

     

    With ASP.NET, developers can choose to create the server-side code for their Web pages in a myriad of languages. The most common languages that developers will choose, will likely be VB.NET or C#. (There are a number of other languages one can choose to use, from Perl.NET to JScript.NET to COBOL.NET.) Of the many ASP.NET articles and code examples that exist on the Web, it seems that while a slim majority of them are shown VB.NET, a good number are written in C#.

    What language is the "best" language choice? If you are a VB wizard, should you take the time to learn C# or continue to use VB.NET? Are C# ASP.NET pages "faster" than VB.NET ASP.NET pages? These are questions that you may find yourself asking, especially when you're just starting to delve into .NET. Fortunately the answer is simple: there is no "best" language. All .NET languages use, at their root, functionality from the set of classes provided by the .NET Framework. Therefore, everything you can do in VB.NET you can do in C#, and vice-a-versa. The only differences among languages is merely a syntactical one.

    If you are more familiar with Java, JScript, or C/C++, you may find C#'s syntax more familiar than VB.NET's. If you've been doing VB for the past five years, there's no reason to think you have to now switch to a new langauge (although you should always look to be learning new things).

    What if you have an ASP.NET Web page written in C# that you want to convert to VB.NET, or vice-a-versa? As aforementioned, the languages only differ in their syntax, so this translation, while not usually trivial, is still fairly striaghtforward, and can be accomplished systemmatically. For information on the syntactical differences between the two languages, be sure to read: From VB.NET to C# and Back Again.

    Happy Programming, with whatever language you choose!

    Jessica Cao
    Sincerely,
    Microsoft Online Community Support


    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • Re: Why c# ??

    01-26-2007, 7:50 AM
    • Loading...
    • zaidqais
    • Joined on 05-27-2006, 8:40 AM
    • Posts 56
    • Points 65
    Thank you all for reply the answer
Page 1 of 1 (4 items)