没有区别。
用官方博客的话来说,String是大名,string是小名。
system.String是.net的框架中的一部分。
在C#中,使用string来简化这个啰嗦的名字。
看这里:
C# defines a number of aliases for CLR types. They may be used interchangably, and even mixed together, e.g.
string x = new System.String(' ', 5);.
These are the aliases defined:
string | System.String | |
sbyte | System.SByte | |
byte | System.Byte | |
short | System.Int16 | |
ushort | System.UInt16 | |
int | System.Int32 | |
uint | System.UInt32 | |
long | System.Int64 | |
ulong | System.UInt64 | |
char | System.Char | |
float | System.Single | |
double | System.Double | |
bool | System.Boolean | |
decimal | System.Decimal |