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` – H H 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
  • 489,969
  • 99
  • 883
  • 1,009
0

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

Zaki
  • 1,101
  • 9
  • 7
0

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

jscharf
  • 5,829
  • 3
  • 24
  • 16