[Mono-list] properties with indexers.

Miguel de Icaza miguel@ximian.com
25 Jul 2003 10:55:17 -0400


hello,

> maybe anyone of you can help me with this. Is it possible to write
> properties which uses indexers? 

use this:

class A {
	object [] o;

	public object this [int i] {
		get { return o [i]; }
		set { o[i] = value; }
	}
}