BitArray.HasAnySet Method

Definition

Determines whether any bit in the BitArray is set to true.

C#
public bool HasAnySet();

Returns

true if BitArray is not empty and at least one of its bit is set to true; otherwise, false.

Applies to

Product Versions
.NET 8, 9, 10