J
Jack Addington
How do I go about accessing elements of an Arraylist using something other
than the index?
I have a class that manages a number of subclasses. Those subclasses are
stored in an arraylist. The subclass has a key property that is a string.
I would like to be able to call Class1.SubClassManager[string key] as
opposed to Class1.SubClassManager[int index].
I tried overriding ArrayList but then I wasn't sure what method to then
override or if there was a simpler method.
thanks
jack
than the index?
I have a class that manages a number of subclasses. Those subclasses are
stored in an arraylist. The subclass has a key property that is a string.
I would like to be able to call Class1.SubClassManager[string key] as
opposed to Class1.SubClassManager[int index].
I tried overriding ArrayList but then I wasn't sure what method to then
override or if there was a simpler method.
thanks
jack