BitFields
BitFields copied to clipboard
BitX.Value should not be public
To make BitX more as number Value should not be public but private / internal, any conversion should happen with cast operations.
It's by design. I'd like to avoid overhead.
Instead, I have a plan to another version of BitX implementation:
- unchecked (current implementation): no runtime check, a public field, implicit cast to an underlying type
- checked (planned):
+, -, *, /operators with range check, a private field, explicit cast to an underlying type
The idea is that you choose on generation what one generate?
I want:
