Пример #1
0
        /// <summary>
        /// Copies this three-dimensional array to another
        /// </summary>
        public void CopyTo(IArray2 <T> array, int offsetX, int offsetY)
        {
            var otherItems = array.GetItems();

            for (int y = 0; y < sizeY; y++)
            {
                Array.Copy(items[y], 0, otherItems[y + offsetY], offsetX, sizeX);
            }
        }
Пример #2
0
        /// <summary>
        /// Copies this three-dimensional array to another
        /// </summary>
        public void CopyTo(IArray2 <T> array)
        {
            var otherItems = array.GetItems();

            for (int y = 0; y < sizeY; y++)
            {
                Array.Copy(items[y], 0, otherItems[y], 0, sizeX);
            }
        }