• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

String and string

What different between String and string in C#?
String S;
string ss;

Thanks
0
billcch
Asked:
billcch
  • 2
2 Solutions
 
billcchAuthor Commented:
Sorry, I suppose to post this question in C# area...
0
 
Walter RitzelSenior Software EngineerCommented:
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
 
dttriCommented:
 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
 
billcchAuthor Commented:
Thank you very much!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now