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.