







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Makes a shallow clone of this bag; i.e., if items of the
bag are reference types, then they are not cloned. If T is a value type,
then each element is copied as if by simple assignment.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
| C# |
|---|
public Bag<T> Clone() |
| Visual Basic (Declaration) |
|---|
Public Function Clone As Bag(Of T) |
| Visual C++ |
|---|
public: Bag<T>^ Clone () |
Return Value
The cloned bag.
Remarks
Cloning the bag takes time O(N), where N is the number of unquie items in the bag.
See Also
Bag<(Of <T>)> Class
Wintellect.PowerCollections Namespace
