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

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


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=
> > 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).
> 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

     Charles Iliya Krempeaux, BSc

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