public object this[int index]
{
get { // get the item at position index in the array and return it }
}
public object this[string key]
{
get
{
// look up the key in the hashtable and grab the store
// index value. Then get the item at the retrieved index
// value in the array and return it
}
}
Would this be the way to go, or is there perhaps a more suitable
method of doing this?
--
Andreas Håkansson
Student of Software Engineering
andreas (at) selfinflicted.org
In a world in which we are all slaves to the laws of gravity,
I'm proud to be counted as one of the freedom fighters.
>.
>
Although, usually the key is an 'object' class
rather than string, but your specific implementation
may only take strings as keys.
-c
"Andreas Håkansson" <and...@selfinflicted.org> wrote in message
news:uG9zlGRJCHA.2728@tkmsftngp10...
I guess I'll have to write my own linked list implementation and
an add the required iterator functionality to it.
--
Andreas Håkansson
Student of Software Engineering
andreas (at) selfinflicted.org
In a world in which we are all slaves to the laws of gravity,
I'm proud to be counted as one of the freedom fighters.
"Kurt Lange" <lange...@hotmail.com> wrote in message
news:16ba001c22513$852b02b0$35ef2ecf@TKMSFTNGXA11...
--
Andreas Håkansson
Student of Software Engineering
andreas (at) selfinflicted.org
In a world in which we are all slaves to the laws of gravity,
I'm proud to be counted as one of the freedom fighters.
"Chad Myers" <cmy...@N0.SP.4M.austin.rr.com> wrote in message
news:VVFV8.45582$q53.1...@twister.austin.rr.com...
Joel Leong
"Andreas Håkansson" <and...@selfinflicted.org> wrote in message
news:uG9zlGRJCHA.2728@tkmsftngp10...
--
Andreas Håkansson
Student of Software Engineering
andreas (at) selfinflicted.org
In a world in which we are all slaves to the laws of gravity,
I'm proud to be counted as one of the freedom fighters.
"Joel Leong" <sc...@tm.net.my> wrote in message
news:#hf$BjyJCHA.1600@tkmsftngp13...