[Gtk-sharp-list] Using IList for API beauty

Charles Iliya Krempeaux charles@reptile.ca
22 Apr 2003 09:38:41 -0700


Hello,

On Tue, 2003-04-22 at 06:45, Gonzalo Paniagua Javier wrote:
> El mar, 22 de 04 de 2003 a las 15:36, Lee Mallabone escribi=F3:

[...]

> > Am I alone in thinking IList usage would be nicer? If not, could someon=
e
> > point me in the right direction to implement this?

Yeah... I think it is nicer.


> I think that a possible option would be making GLib.SList and GLib.List
> implement all those useful interfaces: ICollection, IList,
> IEnumerable... And then provide constructors for all of them (the 2
> types and the interfaces).
>=20
> May be it would be nice to add a RadioButton (params Gtk.Button []
> buttons) constructor too (and then create the GLib.SList that is passed
> to unmanaged code from the array).

And all this should be possible once the parser (and .metadata files)=20
can make a class "implement an interface", and can specify that a
generated method of property should have the "override" keyword
in its declaration/definition.

(Which is coming.)


See ya

--=20
     Charles Iliya Krempeaux, BSc
     charles@reptile.ca

________________________________________________________________________
 Reptile Consulting & Services    604-REPTILE    http://www.reptile.ca/