How are elements stored in containers in .Net?
For example, a C++ vector stores in sequential order, while List doesn’t.
How are they implemented for .Net containers (Array, ArrayList, …)?
Thanks.
How are elements stored in containers in .Net? For example, a C++ vector stores
Share
It depends on the element. But a C++
Vectoris equivalent to a C#List, and a C++List<T>is equivalent to a C# LinkedListThe C#
ArrayListis pretty much, a C#List<object>Wikipedia lists many data structures, and I suggest you have a look there, to see how the different ones are implemented.
So: