Difference between string and string

Source: Internet
Author: User

From the perspective of location:

1. String is the string in. NET Framework, and the string in lower case is the string in C.

2. If using system is deleted, there will be no upper-case strings. System is a function name of the. NET Framework class library.

In terms of nature:

1. string is a keyword, string is a class, and string cannot be used as a class, structure, enumeration, field, variable, method, or attribute name.
2. Write in C #CodeIn this case, try to use a lower-case string, which is more in line with the C # code specification. If efficiency is pursued, you can use a upper-case string, because after compilation, lowercase strings are converted to uppercase strings, which can be compiled to reduce the load and improve the running efficiency.

3. string type indicates a Unicode character string. String is the alias of the. NET Framework string. It is more intuitive to test the equality of strings.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.