ICollection<T>.MoveTo(ICollection<T>) Method
Moves the elements of the ICollection<T> to the specified collection.
public function MoveTo(const collection: ICollection<T>): Integer; overload;
Parameters
- collection
- Type: ICollection<T>
Return Value
Type: Integer
The number of elements that were moved.
This internally uses Extract to make sure that objects from a list with OwnsObject are not getting destroyed.