Creates a shallow copy of the ArrayList.
[Visual Basic] Overridable Public Function Clone() As Object [C#] public virtual object Clone(); [C++] public: virtual Object* Clone(); [JScript] public function Clone() : Object;
A new ArrayList whose members are copied from the original ArrayList.
This method can be overridden by a derived class.
A shallow copy of an object is a copy of the object only. If the object contains references to other objects, the shallow copy will not create copies of the referred objects, but will refer to the original objects instead. On the other hand, a deep copy of an object creates a copy of the object and a copy of everything directly or indirectly referenced by that object.
ArrayList Class | ArrayList Members | System.Collections Namespace