vb.net - .NET replace method from base class in sub class -


i have class:

class foreignkey_editfield     inherits fieldtemplateusercontrol 

the fieldtemplateusercontrol class part of system.web.dynamicdata. in class there method:

protected sub populatelistcontrol(listcontrol system.web.ui.webcontrols.listcontrol)      member of system.web.dynamicdata.fieldtemplateusercontrol 

which called sub class, how can replace method own without changing name. overloads, shadows etc? should signature be?

if want replace method need add qualifier overridable base method sub class method should same qualifier overrides instead of overridable.

edit: since override not option alternative shadows. shadows not virtual new method called compile time type subclass or more specific type. there no way of forcing calls old method replaced new method compile time type parent class.


Comments