becomes a bit in the collection. Thus, each bit in the
and the bits in the collection are the same.
772
P a r t I I :
E x p l o r i n g t h e C # L i b r a r y
You can create a
BitArray
from an array of bytes using this constructor:
public BitArray(byte[ ]
bits
)
Here, the bit pattern in
bits
becomes the bits in the collection, with
bits
[0] specifying the first
8 bits,
bits
[1] specifying the second 8 bits, and so on. In similar fashion, you can construct a
Do'stlaringiz bilan baham: