J
Jazper
hi
i have a simple question about ArrayLists.
Normaly ArrayLists will be accessed by index-number.
ArrayList arr = new ArrayList();
arr.Add("test");
String str = arr[0].ToString();
Now, i'd like to access not by index-number. i'd like to
access by index-string like...
ArrayList arr = new ArrayList();
arr["myindex"] = "test";
String str = arr["myindex"].ToString();
is this possible? is ArrayList designed for things like
that or do i have to use another class? or do i even have
to code this behaviour myself?
thanx for every little answer!
regards, Jazper
i have a simple question about ArrayLists.
Normaly ArrayLists will be accessed by index-number.
ArrayList arr = new ArrayList();
arr.Add("test");
String str = arr[0].ToString();
Now, i'd like to access not by index-number. i'd like to
access by index-string like...
ArrayList arr = new ArrayList();
arr["myindex"] = "test";
String str = arr["myindex"].ToString();
is this possible? is ArrayList designed for things like
that or do i have to use another class? or do i even have
to code this behaviour myself?
thanx for every little answer!
regards, Jazper