Solved

String and string

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filename to be appended with DateTimeof Download 3 68
ASP/VB email question 4 61
C qsort compare function issue 6 36
Hide file extensions in Notepad++ tabs 2 44
This is an explanation of a simple data model to help parse a JSON feed
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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 …
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 …

685 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