[Mono-list] Inheriting from System.Windows.Forms.TextBox
Jon Harrop
jon at ffconsultancy.com
Thu Nov 20 20:07:05 EST 2008
On Thursday 20 November 2008 22:53:46 Jerry Houston wrote:
> On Wednesday 19 November 2008 21:05:16 Jonathan Pobst wrote:
> > I don't understand F#, ...
>
> Don't feel bad. I've got a book on F#, and I don't understand it, either.
Hope it wasn't my book then. ;-)
The F# code here:
type A() =
inherit TextBox()
just defines a new class "A" that inherits from TextBox and implicitly
provides a zero-argument constructor that calls TextBox's.
The equivalent C# is something like:
public class A : TextBox
{
public new A()
{
}
}
--
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e
More information about the Mono-list
mailing list