Summary
The function IsPowerOf2 from the PowerOf2.cs file in Bson project always return true :
- 1 & 0 = 0
- 0 & 1 = 0
Simple Fix:
```cs
# Replace
var result = (n & (n - 1)) == 0;
# By
var result = n % 2 == 0;
```
The function IsPowerOf2 from the PowerOf2.cs file in Bson project always return true :
```cs
# Replace
var result = (n & (n - 1)) == 0;
# By
var result = n % 2 == 0;
```