I have checked the differences between the two, but it is not very clear after several days, and I have not understood the differences between the two. I will query the online discussion again today, the main points are as follows:
- String is a class in C,String is A. NET Framework class (blue is not displayed in C # IDE)
- C # string ing is the string of. NET Framework.
- If a string is used, the compiler will compile it into a string. Therefore, if a string is used directly, the compiler will do less work.
- If C # is used, we recommend that you use string to conform to the specifications.
- String always represents system. string (1.x) or: system. string (2.0), string indicates system only when there is using system; in front of it and the namespace does not contain the string type (class, struct, Delegate, Enum. string
- String is a keyword, and string is not. That is to say, string cannot be the name of a class, structure, enumeration, field, variable, method, or attribute. string can