Looking these posts:
Does a List<T> guarantee that items will be returned in the order they were added?
Does List<T> guarantee insertion order?
is pretty clear for me that the Add method do an ordered insertion. Perfect.
But my question is: when I use the inline initialization, like this:
var l = new List<object> {
object1,
object2,
object3,
object4,
};
is the same, right?
Yes, is a silly question, but I can not find anything on MSDN.