0

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

In C# there are two string types. (The same for booleans, object, ect.). One that begins with uppercase and one lowercase. String and string. They seem to have the same methods.

So whats is the difference between them?

Community
  • 1
  • 1
Aaron de Windt
  • 13,661
  • 12
  • 44
  • 58

2 Answers2

0

string is a keyword, while System.String is a class. You can consider string to be an alias for System.String.

twoflower
  • 6,588
  • 2
  • 31
  • 42
0

There is one difference... you can't use String without using System; beforehand.

What is the difference between String and string in C#?

Community
  • 1
  • 1
Matt Bradley
  • 4,127
  • 17
  • 11