0

Possible Duplicate:
String vs string in C#

I understand there is a difference between Integer and int in Java,

Similarly I realised that String and string kinda works in C# too, is there any differences in these 2? Datatype vs Class object?

Community
  • 1
  • 1
nubela
  • 1
  • 24
  • 75
  • 123

2 Answers2

3

No. string is an alias for String.

Same as:

int ==> Int32
double ==> Double

and others.

tster
  • 17,883
  • 5
  • 53
  • 72
  • strictly speaking, `System.String`, which isn't *quite* the same (depending on the context, active directives, etc). – Marc Gravell Jan 25 '10 at 06:33
0

There are no differences. string is just an alias for System.string:

The string data type is an alias for the System.String class.

.NET Book Zero page 57

vitch
  • 3,215
  • 3
  • 25
  • 26