C# BitArray BitArray(BitArray)

Description

BitArray BitArray(BitArray) initializes a new instance of the BitArray class that contains bit values copied from the specified BitArray.

Syntax

BitArray.BitArray(BitArray) has the following syntax.


public BitArray(
  BitArray bits
)

Parameters

BitArray.BitArray(BitArray) has the following parameters.

  • bits - The BitArray to copy.

Example


//ww w.  jav a2s. c o m
using System;
using System.Collections;
public class SamplesBitArray  {
   public static void Main()  {
      BitArray myBA = new BitArray( new int[]{0,0,0,1} );
      BitArray myBA1 = new BitArray( myBA );
   }
}




















Home »
  C# Tutorial »
    System.Collections »




ArrayList
BitArray
Comparer
Hashtable
Queue
SortedList
Stack