Alex Rivera | Logout

Is the order of an arraylist guaranteed in C#.NET?

Asked 2008-11-26T15:27:48.573
18

If I'm using an ArrayList in C#.NET, is the order guaranteed to stay the same as the order I add items to it?

Edit
Report

1 Answer

6

Yes, it is, unless some piece of your code changes the order by e.g. swapping.

answered 2008-11-26T15:29:40.550

Your Answer