System.Collections.BitArray.Not Method

Inverts all the bit values in the current BitArray, so that elements set to true are changed to false, and elements set to false are changed to true.

Syntax

public BitArray Not ()

Returns

The current instance with inverted bit values.

Remarks

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