/// <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; }
/// <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); }