[Gtk-sharp-list] default empty protected constructors (please read this one instead of crapped previous one)

Radek Doulík rodo@ximian.com
12 Jul 2002 15:44:32 -0400


--=-lojKACX7HtcDvhyUaelC
Content-Type: text/plain
Content-Transfer-Encoding: 7bit


Hi,

why do we have constructors like this one?

protected ScrolledWindow() : base(){}

I would like to add new constructor to ScrolledWindow, but I can't do it
yet because of mentioned protected one.

public ScrolledWindow () : this (new Adjustment (IntPtr.Zero), new Adjustment (IntPtr.Zero)) {}

I don't see any purpose to have the protected ones. Is it possible to
disable their generation?

Cheers
Radek


--=-lojKACX7HtcDvhyUaelC
Content-Type: text/html; charset=utf-8

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.1.1.1">
</HEAD>
<BODY>
<BR>
Hi,<BR>
<BR>
why do we have constructors like this one?
<PRE><FONT SIZE="3"><B>protected ScrolledWindow() : base(){}</FONT></B></PRE>
I would like to add new constructor to ScrolledWindow, but I can't do it yet because of mentioned protected one.
<PRE><FONT SIZE="3"><B>public ScrolledWindow () : this (new Adjustment (IntPtr.Zero), new Adjustment (IntPtr.Zero)) {}</FONT></B></PRE>
I don't see any purpose to have the protected ones. Is it possible to disable their generation?<BR>
<BR>
Cheers<BR>
Radek<BR>
<BR>
</BODY>
</HTML>

--=-lojKACX7HtcDvhyUaelC--