J
joe.osowski
I am extending Microsoft's webcontrols with a few extra properties and
methods.
Specifically TextBox and DropDownList and later probably more.
In a perfect world I would just add my methods to the WebControl class.
Or store the implementation in the Interface(if that was possible).
Unfortunately to my knowledge, I do not have access to this class. So
currently I defined an Interface that forces each of my custom classes
to implement a series of methods.
But the implementation is EXACTLY the same in every class. Which is
just silly. I perhaps could move the logic out to a static class, but
that is still kind of hack.
These methods are manipulating properties of the class they are a part
of, and they are doing the exact same thing in every class.
Any suggestions?
-Joe
http://phillylocal.com
methods.
Specifically TextBox and DropDownList and later probably more.
In a perfect world I would just add my methods to the WebControl class.
Or store the implementation in the Interface(if that was possible).
Unfortunately to my knowledge, I do not have access to this class. So
currently I defined an Interface that forces each of my custom classes
to implement a series of methods.
But the implementation is EXACTLY the same in every class. Which is
just silly. I perhaps could move the logic out to a static class, but
that is still kind of hack.
These methods are manipulating properties of the class they are a part
of, and they are doing the exact same thing in every class.
Any suggestions?
-Joe
http://phillylocal.com