public CircularList<T> GetRange(
int index,
int count
)
Public Function GetRange (
index As Integer,
count As Integer
) As CircularList(Of T)
public:
CircularList<T>^ GetRange(
int index,
int count
)
member GetRange :
index : int *
count : int -> CircularList<'T>
A shallow copy of a collection of reference types, or a subset of that collection, contains only the references to the elements of the collection. The objects themselves are not copied. The references in the new list point to the same objects as the references in the original list.
A shallow copy of a collection of value types, or a subset of that collection, contains the elements of the collection. However, if the elements of the collection contain references to other objects, those objects are not copied. The references in the elements of the new collection point to the same objects as the references in the elements of the original collection.
In contrast, a deep copy of a collection copies the elements and everything directly or indirectly referenced by the elements.
This method is an O(n) operation, where n is count.