Search code examples
c#c++liststackpush-back

push_back operation in c# containers


I need container like c++ vector. Often it is adviced to use List, but it dosen't support push_back operation. I know this is rather simple implementing an extension method for List container. But. Would Stack be a good alternative?

Thanks!


Solution

  • It does support List<T>.Add. Isn't that what you are looking for?