Queue: Clone

Clone

Creates a shallow copy of the Queue.



 Public Function Clone ( ) As Queue

Return Values

Queue -  A shallow copy of the Queue.

Remarks

Returns a second queue with the same contents as the original.

A shallow copy of a collection copies only the elements of the collection, whether they are reference types or value types, but it does not copy the objects that the references refer to. The references in the new collection point to the same objects that the references in the original collection point to.

See Also

Project CorLib Overview

Class Queue Overview