i'm trying to reuse instead of flooding my base class with meaningless stuff..
trying to find an elegant way to do this
code should be self explanatory :
the point is i can implement generic 'scrolling' logic in ObjectScroller, to object no matter if i directly inherit from a widget that implements it explicitly
i just dont want to add all the base logic inside the base class, and i want inheriting classes to be able to optionally implement it, without copy-pasting code all the time (or i would just be using plain interfaces)
is there a better / smarter way to do this ?
by lafeme via /r/csharp