How can one convert a list of objects to a queue thereby maintaining the same order?
Queue has a constructor that takes in an ICollection. You can pass your list into the queue to initialize it with the same elements:
Queue
ICollection
var queue = new Queue<T>(list); // where 'T' is the lists data type.
1.4m articles
1.4m replys
5 comments
57.0k users