Solved

String and string

Posted on 2004-08-07
4
194 Views
Last Modified: 2010-04-17
What different between String and string in C#?
String S;
string ss;

Thanks
0
Comment
Question by:billcch
  • 2
4 Comments
 

Author Comment

by:billcch
ID: 11742171
Sorry, I suppose to post this question in C# area...
0
 
LVL 16

Accepted Solution

by:
Walter Ritzel earned 125 total points
ID: 11742413
String is a class, and string is the primitive value type. The string was available just for compatibility purposes, because all primitive types are really classes.

So, dont exist any real difference between theses two types.

Hope this helps,

Walter.
0
 
LVL 7

Assisted Solution

by:dttri
dttri earned 125 total points
ID: 11743187
 Hello,
  I take this from MSDN, hope this help:
  String class: Represents text; that is, a series of Unicode characters.
  The string type represents a string of Unicode characters. string is an alias for System.String in the .NET Framework.

  Tri
0
 

Author Comment

by:billcch
ID: 11746004
Thank you very much!
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 77
detecting  the added row index in a datagridview 3 70
index Out OF Range Exception error 4 61
Change the background and font colors in Notepad++ 5 83
This is about my first experience with programming Arduino.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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 …

776 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