There is no difference between the two. You can use either of them in your code.
System.String
is a class (reference type) defined the mscorlib
in the namespace System
. In other words, System.String
is a type in the CLR
.
string
is a keyword in C#