In a nutshell, what's the difference between string (lower-case 'S') and String (upper-case 'S')? They both seem to work just as well, though string is displayed in VS in dark-blue, whereas String is displayed in light-blue.
Many of the other system types seem to have these variants as well.
Thanks
Paul
Loading
Santhosh NPosted Jan 5, 2010, 4:03 AM
The string type represents a string of Unicode characters. string is an alias for
string is just an alias of System.String just like
int = Int32
char = Char
bool = Bool
paul walkerPosted Jan 5, 2010, 5:26 AM
Paul
Kirtan PatelPosted Jan 5, 2010, 4:58 AM
Vipul KelkarPosted Jan 5, 2010, 4:24 AM
Its just an alias...
Lalit MPosted Jan 5, 2010, 4:11 AM
http://www.geekpedia.com/KB31_What-is-the-difference-between-the-int-and-Int32-datatype-or-String-and-string-(lowercase).html
Nilanka DharmadasaPosted Jan 5, 2010, 4:08 AM
'string' is an alias(a short name) for System.String. So both are same.