C #-protected internal

Source: Internet
Author: User

protected internal

The type or member can be accessed by any code in the assembly in which it is declared, or from within a derived class in Another assembly. Access from another assembly must take place within a class declaration this derives from the class in which Internal element is declared, and it must take place through an instance of the derived class type.

Note

The protected internal accessibility level means protected or internal, not protected and internal. In other words, a protected internal member can is accessed from all class in the same assembly, including derived classes . To limit accessibility to only derived classes in the same assembly, declare the class itself internal, and declare its me Mbers as protected.

C #-protected internal

Related Article

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.