[Mono-list] SPAM-LOW: Re: Inheriting from System.Windows.Forms.TextBox

Charlie Poole charlie at nunit.com
Thu Nov 20 14:08:02 EST 2008


Hi 

> On Thu, Nov 20, 2008 at 4:47 PM, Jb Evain <jb at nurv.fr> wrote:
> > Hey,
> >
> > On 11/20/08, Jon Harrop <jon at ffconsultancy.com> wrote:
> >  >  Any ideas why?
> >
> > It looks like a F# compiler bug to me.
> >
> 
> Just for info the the method is defined in the TextBoxBase:
> 
>    internal abstract Color ChangeBackColor (Color backColor);
> 
> and implemented in the TextBox class:
> 
>    internal override Color ChangeBackColor (Color backColor) { ... }

It also seems to be a design bug. What's the point of having
a public abstract class if it's written in such a way that you
can only extend it internally?

Charlie





More information about the Mono-list mailing list