System.Collections.BitArray.Set Method

Sets the bit at a specific position in the BitArray to the specified value.

Syntax

public void Set (int index, bool value)

Parameters

index
The zero-based index of the bit to set.
value
The Boolean value to assign to the bit.

Remarks

This method is an O(1) operation.

Requirements

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