Hi dudes
Can any one tell me what is BitArray Class and real usage of it....?
Collections
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Jun 24, 2011, 5:03 AM EDT
It's more memory efficient than a bool[] or a List
This can be useful where you need to deal with data at the bit level or to use as little memory as possible when storing such values. It has And, Or, XOr and Not operators to assist with this.
However, it is relatively slow compared to doing bit arithmetic directly (using C#'s &, |, ^, ~ operators) on integer values.