Does a List<T>
always guarantee that items will be returned in the order they were added when enumerated?
Updated: Thanks for all the answers folks, puts my mind at ease. I had a quick poke around the List<T>
class with .NET Reflector (should've probably done that in the first place) and indeed the underlying store is an array of T
(T[]
).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…