System.Collections.BitArray.And Method

Performs the bitwise AND operation on the elements in the current BitArray against the corresponding elements in the specified BitArray.

Syntax

public BitArray And (BitArray value)

Parameters

value
The BitArray with which to perform the bitwise AND operation.

Returns

The current instance containing the result of the bitwise AND operation on the elements in the current BitArray against the corresponding elements in the specified BitArray.

Remarks

The bitwise AND operation returns true if both operands are true, and returns false if one or both operands are false.

This method is an O(n) operation, where n is BitArray.Count.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0