Exemplo n.º 1
0
        public void MoveTo(CArray <T> destination)
        {
            if (Empty)
            {
                return;
            }

            destination.Add(this);
            Clear();
        }
Exemplo n.º 2
0
        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;
        }