At the moment, I use List<short>as a buffer to store things for some time, while the calculation is done for each value based on other values โโlocated further in the buffer. Then I realized that this was probably not very effective, because I was told that List<>this is a linked list, so every time I do whatever = myList[100];, the poor have to jump from all the other nodes first to get the value I want. I do not want to use a regular array, because I have loads Add()and Remove()carrying in other places in the code. So I need a class that inheritsIList<T>but uses a regular array data structure. Does anyone know a class in .net that works this way, so I don't need to write it myself? I tried using an ArrayList, but it is not typical!
source
share