Solved

String and string

Posted on 2004-08-07
4
192 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 15

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

744 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

11 Experts available now in Live!

Get 1:1 Help Now