Overview
This article focuses on the difference between string and strings, with little specific knowledge of string and string.
String
String is a class in C #, and string is a class of the. NET Framework (does not display blue in the C # IDE)
String always represents System.String (1.x) or:: System.String (2.0), string is only preceded by the using System and there is no type named string in the current namespace (class, struct, delegate, enum) is only representative of System.String
String
string mapped to a. NET Framework string
Sring is a keyword, string is not, that is, string cannot be the name of a class, struct, enumeration, field, variable, method, property, and string.
Summarize
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 #, we recommend that you use string to compare compliance
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The difference between string and string