0

Possible Duplicate:
String vs string in C#
In C# what is the difference between String and string

What is difference between System.String and System.string in C# .NET ? Can i compare variable of System.String with System.string ?

Community
  • 1
  • 1
Anand
  • 93
  • 4
  • 12
  • 1
    They are the same, string in an alias of System.String. Duplicate of question http://stackoverflow.com/questions/215255/string-vs-string-in-c Many good answers there. – tarn Aug 21 '10 at 07:42
  • 1
    `System.string` won't compile. It's either `string` or `System.String` – Henk Holterman Aug 21 '10 at 08:42

3 Answers3

2

string is an alias of String.

See MSDN (string (C# Reference)):

string is an alias for String in the .NET Framework.

Oded
  • 477,625
  • 97
  • 867
  • 998
0

string is a shorthand to System.String, they are the same.

Zaki
  • 1,091
  • 9
  • 7
0

For all intents and purposes, nothing! String is just an alias for string.

jscharf
  • 5,669
  • 2
  • 22
  • 16