views:

69

answers:

3

Possible Duplicate:
String vs string in C#

What's the difference between string and String, if any?

They both seem to perform the same funtion, but the casing is different. So, there are only TWO things that are different (that I know of) and they are:

When spelled with a capital letter, the color of its text is Blue in VStudio. Casing.

+2  A: 

they are the same. string is an alias for String.

Andrew Keith
thank you Andrew Keith :)
baeltazor
A: 

"string" is simply an alias for "System.String"

On Freund
+3  A: 

string is a keyword which aliases type System.String. String is just a short name for type System.String, which is brought into your scope when you write using System;. Similarly, object is a keyword alias for System.Object, int is a keyword alias for System.Int32, and so on.

VS highlights keywords with blue, which is why string is blue, while String is not.

Pavel Minaev