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:
var queue = new Queue<T>(list); // where 'T' is the lists data type.