C # is case-sensitive, but I find that there are strings in C # and string, so I was confused, so I searched the internet, so I learned some small knowledge.
Description of String on MSDN:string is a alias for string in the. NET Framework. String is a string alias, string is a class in C #, string is the class of the framework, and C # string is mapped to a string of the framework. If a string is used, the compiler compiles it into a string, so the compiler can do a little bit less work if you use string directly.
If you use C #, it is recommended that you use string to compare to specifications. String always represents System.String (1.x) or:: System.String (2.0), string is only preceded by using System, and there is no type named string in the current namespace (class, struct, delegate, enum) is only representative of System.String.
String is a keyword, string is not, that is, string cannot be the name of a class, struct, enumeration, field, variable, method, property, and string.
[C #] The difference between string and string