[Gtk-sharp-list] Improving Gtk# The Wiki Page.

Enver ALTIN ealtin@parkyeri.com
Sun, 01 May 2005 05:40:42 +0300


--=-YvnOr8b4KGXnxY2bpknH
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hey,

On Sat, 2005-04-30 at 15:14 -0600, Phil Durand wrote:
> I should be able to easily go:
>=20
> ComboBox.Items.GetIndex(3); to return the third item in the combo
> box's list.

There's something called the default index property (denoted
with /default/ keyword while defining it) in Delphi/OOP which makes this
even one-word shorter:

        ComboBox.Items[3]

makes the use of Items collection just as easy as an array, by mapping
the index (3 in this case) to the get method of the default indexer
property. I'm totally unsure how this could be adopted for Collection
classes though.

Or am I talking about something totally irrelevant? :) If so, please
excuse this beginner.
--=20
.O.
..O   Enver ALTIN                   |   http://skyblue.gen.tr/
OOO   Software developer @ Parkyeri | http://www.parkyeri.com/

--=-YvnOr8b4KGXnxY2bpknH
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCdEGqZCB2FZvqK0sRAstzAJ9OHoZ+Tv+MtxQ2AgO42h828BVvMQCffTgT
yvvy4mTDoEqaedhwXeQ/J9c=
=j1js
-----END PGP SIGNATURE-----

--=-YvnOr8b4KGXnxY2bpknH--