What is difference between string and String? same way int and Int16,32,64 etc

Posted on 2011-05-10
Last Modified: 2012-05-11
I know in C# we have both variable type like string and int and then object type with CAPS like Int32 and String.

I know one is primitive variable and the other is a class object but as a newbie I just look at it as a concept. Can you give me any specific scenario in which we use use one over other and why?
Question by:TheCommunicator
    LVL 23

    Accepted Solution

    The Int16, etc. allow you to specify the number of bits - only ONE of these is the same as int.

    Not much difference aside from style between string and String, see

    Author Comment

    Thank you so much :).
    LVL 23

    Expert Comment

    by:Jens Fiederer
    My pleasure, thanks.
    LVL 40

    Expert Comment

    In C# there isn't any difference. One is a compiler alias to the other.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    This is about my first experience with programming Arduino.
    If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
    Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
    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 …

    730 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

    15 Experts available now in Live!

    Get 1:1 Help Now