R
Rachel Suddeth
Every time I read about these things my brain gets muddled and I can't keep
them straight. I'm going to give my guesses, could someone confirm or deny?
I think a collection doesn't have to be ordered. But you do have to be able
to use foreach(), and it will hit every object in the collection once. But
could be in one order one time, and in another order the next, even if
nothing is done by the programmer to change anything in the collection.
(Probably wouldn't but no guarantees.)
I think if a collection has an indexer, then it is ordered. I don't mean
sorted, but If I say something[3], at any time in my program, and no
programmer has ever done anything intentionally to change the contents of
something[3], or add anything before postition 3, or remove what's at
position[3], then I will get the same results. Can a group of like objects
be indexed, but not be a collection?
I think the ControlCollection is ordered in this way, since it has an
AddAt(index) method. Does that mean it's indexed?
______________________________________________________________
Roydan Enterprises Ltd
602 North 9th Street
Manitowoc, WI 54220-3924
them straight. I'm going to give my guesses, could someone confirm or deny?
I think a collection doesn't have to be ordered. But you do have to be able
to use foreach(), and it will hit every object in the collection once. But
could be in one order one time, and in another order the next, even if
nothing is done by the programmer to change anything in the collection.
(Probably wouldn't but no guarantees.)
I think if a collection has an indexer, then it is ordered. I don't mean
sorted, but If I say something[3], at any time in my program, and no
programmer has ever done anything intentionally to change the contents of
something[3], or add anything before postition 3, or remove what's at
position[3], then I will get the same results. Can a group of like objects
be indexed, but not be a collection?
I think the ControlCollection is ordered in this way, since it has an
AddAt(index) method. Does that mean it's indexed?
______________________________________________________________
Roydan Enterprises Ltd
602 North 9th Street
Manitowoc, WI 54220-3924