Performs the bitwise AND operator on the elements in the current BitArray against the corresponding elements in the specified BitArray.
[Visual Basic] Public Function And( _ ByVal value As BitArray _ ) As BitArray [C#] public BitArray And( BitArray value ); [C++] public: BitArray* And( BitArray* value ); [JScript] public function And( value : BitArray ) : BitArray;
A BitArray containing the result of the bitwise AND operator on the elements in the current BitArray against the corresponding elements in the specified BitArray.
Exception Type | Condition |
---|---|
ArgumentNullException | value is a null reference object. |
ArgumentException | value and the current BitArray do not have the same number of elements. |
The bitwise AND operator returns true if both operands are true, and returns false if one or both of the operands are false.
BitArray Class | BitArray Members | System.Collections Namespace