I have two sets of collection objects (inherit from collection base) in a project. A property in collection A, depends on the index of an object in collection B.
Everything is great until items are removed from collection B because the indexes are changed and the property that depends on the index in collection B is now wrong.
I can fix this programmatically many different ways. But i wonder if maybe there is a collection defined in .NET that would be of use to fixing this problem. I am not searching these collections just constantly updating properties, in loops.
My best idea so far was to create an array named TrueIndex that holds the values of the real indexes an allows me to trick my program in a sense. I was considering a loop but i have graphics that depend on this and the loop would slow down everything considerably.
any ideas?
Everything is great until items are removed from collection B because the indexes are changed and the property that depends on the index in collection B is now wrong.
I can fix this programmatically many different ways. But i wonder if maybe there is a collection defined in .NET that would be of use to fixing this problem. I am not searching these collections just constantly updating properties, in loops.
My best idea so far was to create an array named TrueIndex that holds the values of the real indexes an allows me to trick my program in a sense. I was considering a loop but i have graphics that depend on this and the loop would slow down everything considerably.
any ideas?