Access data characters in C #

Source: Internet
Author: User

"Directly defining a type in a namespace can only be internal or public"

"To be accessed by other projects within the same solution, and to reference the namespace".

"The default modifier for the class is internal"

1.Private Private access modifiers can only be accessed within the class, other places cannot access " members in a class do not write access modifiers are private by default"

2.Protected the current class can be accessed inside the subclass also accessible "as long as there is a parent-child relationship to access"

3.Internal in the current assembly, "generate an exe file per assembly" section is accessible .

The 4.Protectes internal has two functions. Inside of the current class, inside of the current assembly or within all subclasses.

5.Public No Limit

Access data characters in C #

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.