push_back operation in c# containers

lexeme picture lexeme · Jan 19, 2011 · Viewed 12.3k times · Source

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!

Answer

detunized picture detunized · Jan 19, 2011

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