Hey
I am just going through some code to make a tiny change and wanted to confirm if there is another way. So I have this line of code
Dim _A As System.Collections.BitArray
.
..
...
Return _A.Cast(Of Boolean).Contains(True)
Which converts everything from the bitarry to a boolean and then checks for which of them are true. And all the true variables are returned. That is what I get from my understanding.
Now is there any way to add an exception to this so that it excludes a specific bit from the array? I dont want a specific bit returned if it in fact true. Or would I have to use a for and if loop insead of that?
Thanks!
I am just going through some code to make a tiny change and wanted to confirm if there is another way. So I have this line of code
Dim _A As System.Collections.BitArray
.
..
...
Return _A.Cast(Of Boolean).Contains(True)
Which converts everything from the bitarry to a boolean and then checks for which of them are true. And all the true variables are returned. That is what I get from my understanding.
Now is there any way to add an exception to this so that it excludes a specific bit from the array? I dont want a specific bit returned if it in fact true. Or would I have to use a for and if loop insead of that?
Thanks!