Esempio n. 1
0
        /// <summary>
        /// Creates a copy of the BitArray with the same values
        /// </summary>
        /// <returns></returns>
        public BitArray2D Clone()
        {
            var new_bitarray2d = new BitArray2D(this.Width, this.Height);

            for (int i = 0; i < this.BitArray.Length; i++)
            {
                new_bitarray2d.BitArray[i] = this.BitArray[i];
            }

            return new_bitarray2d;
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a copy of the BitArray with the same values
        /// </summary>
        /// <returns></returns>
        public BitArray2D Clone()
        {
            var new_bitarray2d = new BitArray2D(this.Width, this.Height);

            for (int i = 0; i < this.BitArray.Length; i++)
            {
                new_bitarray2d.BitArray[i] = this.BitArray[i];
            }

            return(new_bitarray2d);
        }