Customising the SortedArray class
-
Hi, I need to manipulate the 'SortedArray' class in .net so that it allows the entry of the same key more than once. At the same time, it should have all the other properties and methods as it had before. This is crucial to my project. I am totally unfamiliar with overriding the base classes to produce this kind of desired functionality. Could you spare some of your precious time to help me out with the problem ? -Sreerag
-
Hi, I need to manipulate the 'SortedArray' class in .net so that it allows the entry of the same key more than once. At the same time, it should have all the other properties and methods as it had before. This is crucial to my project. I am totally unfamiliar with overriding the base classes to produce this kind of desired functionality. Could you spare some of your precious time to help me out with the problem ? -Sreerag
I suspect you'd do better to take another container class, and either make it sorted, or simply sort it every time you add an item. I suspect that the requirement of items being unique is an assumption that could cause you grief in a lot of places within the class.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog