BitArray Constructor (Boolean[])

BitArray Constructor (Boolean[])

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the BitArray class that contains bit values copied from the specified array of Booleans.

Namespace:  System.Collections
Assembly:  mscorlib (in mscorlib.dll)

public BitArray(
	bool[] values
)

Parameters

values
Type: System.Boolean []
An array of Booleans to copy.

ExceptionCondition
ArgumentNullException

values is null.

This constructor is an O(n) operation, where n is the number of elements in values.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft