On Mar 31, 9:41 am, "Marc Gravell" <marc.grav...@gmail.com> wrote:
> That is a little harsh; until he added the argument "(int location)" it
> was
[quoted text clipped - 39 lines]
>
> etc
Hi Marc, Jon,
Unfortunately I have three of the arrayLists in this class, all three
will have to follow the same insert concept.
I am thinking I will just have to go with a standard access scheme
rather than properties, since I need an index for
each list.
Jeff
each property could return a class wich is itself indexable.
eg
class myArray
{
string[] s;
public string this[int index] {get {return s[index];}}
}
class myclass
{
myArray _array1,_array2,_array3;
myArray array1 {get {return _array1;}}
}
main()
{
myclass a;
a.array1[0]="abc";
a.array2[1]="xyz";
}
ofc this only shows the syntax
Colin =^.^=
Hoop - 31 Mar 2008 17:03 GMT
> On Mar 31, 9:41 am, "Marc Gravell" <marc.grav...@gmail.com> wrote:
>
[quoted text clipped - 78 lines]
>
> - Show quoted text -
Hi,
Thats looks pretty decent.
Thanks
Jeff