The iextenderprovider interface is used in combination with the reflection principle.

Source: Internet
Author: User

Combined with the reflection principle, the iextenderprovider interface can be used to create a control that is very beneficial to the presentation layer of Web applications. This interface can extend attributes to other components in the container. In this way, we can use a single component to manage the settings of some components with similar settings on the page. at the same time, you do not need to rewrite a control to add custom properties to the original control.
This interface is actually very easy to implement. You only need to implement the canextend method, and I think this interface is applicable to winform.ProgramIt is also very meaningful. Both programs can use controlmanager controls to reduce the presentation layer of the application system.CodeWrite. I think it is easier for Windows programs to write controls similar to controlmanager, because system. windows. forms. the control base class has a databindings set, which makes it easier to bind data. You only need one add. I think the controlmanager control I wrote simply applies the iextenderprovider interface and reflection principle. I believe they can also be used to create components that are more conducive to application system development.

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.