Solved And

Posted on 2005-04-11
Last Modified: 2012-06-21
I have 2 years of experience in and i don,t have any experience in
So i would like to know what is the main diffrence between these two . As far as my concern both language is offering same kind of programing,Is C# has any advantage over
Question by:mabi_mathew
    LVL 4

    Expert Comment

    same as me... but now I am developing a web application in C# -- just took me 2 days to change me from to C#. It is very easy!
    LVL 4

    Expert Comment

    Any way, I can not see C# has any advantage over, but again, I perfer C# personally.
    LVL 4

    Expert Comment

    C# is alot more in the definitions and comparisons and initiating everything, its about 50 lines of code to do the same thing in VB.NEt in 10 lines... its quite pathetic C# while it has more functionality its tiresome and overdriven and way to much typing.
    LVL 2

    Accepted Solution

    hello Brother

    Check this

    More Information    

    VB.NET is a fully object oriented language. It definitely supports inheritance, even something called "visual inheritance." VB.NET, I think is a first class citizen now, but certainly earlier versions were garbage toys. My suggestion would be to learn both! Within the managed world anything you can do with C# you can do with VB.NET (I may be forgetting one or two rare things). Of course C# lets you write "unsafe code." That is why MS uses C# because it is suited for writing unsafe code and all their developers are acquainted with C. If you are writing a compiler then yes, VB.NET is not the tool ... If you are writing a database or webbased application though ... C# is my favorite language at this point but I don't think there is any reason to knock the .NET incarnation of VB. The reason its my favorite though is because it is a C-style (curly bracket) language. I think the most compelling reason to learn C# is so you at least learn the syntax and way a C-style language works as there are several of them out there. Ok, hope this was informative.

    LVL 2

    Expert Comment

    by:Mohammad Aamir Qureshi
    LVL 44

    Assisted Solution

    be aware, however, that C# (like C and C++) is CASE_SENSITIVE - that is, variable names are case sensitive:

    int x = 5;
    int X =10;

    these two statements in c# declare 2 (yes 2) different  distinct variables.  

    let's say you have a TextBox control places on your form.  The default name of the TextBox is textBox1.  YOu now declare a variable, to hold the text from textBox1:

    string TextBox1 = "Hi there ";

    then you can legally write code that looks like this:

    textBox1.text = TextBox1;

    this can quickly get to be very confusing.


    LVL 7

    Expert Comment

    Well, being short:

    - VB.Net is an OO language based on Visual Basic. Actually, resembles Delphi... and Classes are more logical than in VB6.
    - C#.Net is an OO language based on C++. Some differences like class member notation (dots instead of semicolon) and variable usage (less pointers)
    - As Arthur_Wood saids, VB.Net is case-insensitive, whle C# is not
    - Parameter passing and function returns are constrained by the .Net definitions, so a c# function could be easily called from VB.Net, and so.

    Every .Net language (vb, c#, Delphi, and others) shares a set of requirements, and a common runtime (CLR), at the point that they are "pre-compiled" to a common intermediate language, and then to the exec.
    In fact, you can make a module in c#, and the other in, and then compile them to the same exec. Nice, ah?

    Both can access arbitrary memory locations (can use pointers), BUT are denied by default. Memory is also managed. That means less memory leaks...

    They introduce the concept of namespaces. Is like including "libraries" from a subdirectory structure. Each part of the tree has functions, clases, routines, etc.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Suggested Solutions

    INTRODUCTION We all know how to code. But at times you simply want to insert a common code block into your existing code and amend it as per your requirements. This tool not only saves you time but also saves you the pain of typing it all out aga…
    Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now