public void MoveTo(CArray <T> destination) { if (Empty) { return; } destination.Add(this); Clear(); }
public void Add(CArray <T> cArray) { if (cArray.Empty) { return; } var source = cArray._elements; var sourceCount = cArray._atIndex; var destination = _elements; Array.Copy(source, 0, destination, _atIndex, sourceCount); _atIndex += sourceCount; }