Method GetAndSet
GetAndSet(Int32)
Sets a bit and returns the previous value.
The index
should be less than the Length.
Declaration
public virtual bool GetAndSet(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Type |
Description |
System.Boolean |
|
GetAndSet(Int64)
Sets a bit and returns the previous value.
The index
should be less than the Length.
Declaration
public virtual bool GetAndSet(long index)
Parameters
Type |
Name |
Description |
System.Int64 |
index |
|
Returns
Type |
Description |
System.Boolean |
|