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.
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.