Can someone give me a real world example for when I might want/need to use the BitArray class in .NET? -


I understand how to use the bitary classroom, but I'm looking for an example where someone in the real world The program can be used.

The most legitimate use of BitArray I have seen in this sensitive category of size bool is the backing store for the group of values ​​

  class examples {private bitrate _data = new bitters (...); Public bool Value0 {get {return_data.Get (0); } Set {_data.Set (0, value); }} Public Child Value1 {get {return_data.Get (1); } Set {_data.Set (1, value); }} ...  

Using one 'bull' for each of the above mentioned fields, each byte will create an overhead of per property. To reduce the overhead by 1 bit per property in the best case scenario Using BitArray is potential . This can be important for some specific cases.

Note: When I say valid above, I mean that the type of shape is not sensitive, but it is actually measured and proves important.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -