I am loading the custom user controls in my form using the reflection, I start "all" my user controls and I would like to "end" the method so that they are all like:
public interface history {zero start (); Zero end (); } Public Class Other Controller: UserControl, IStartEnd {Public Zero Start () {} Public Zero End () {}}
I have to do an interface to load through reflection, But the following are clearly used to act as an interface can not inherit a class:
Public Interface IMyUserControls: UserControl, IInit, IDispose {}
You can apply a barrier to the runtime To implement the class, IMyUserControls: IInit, IDispose
is also UserControl
It is reasonable to believe that the requirements of the developer controls that provide custom controls for your app I know, so I do not see any problem in checking the runtime.
Comments
Post a Comment