Arbitrary bit-sized data type in C#
- by Yaakov Davis
What is the best way of defining in C# a structure with, say, 6 bits of data?
I can, of course, define 2 fields of int + short, but I wonder if there's a way of holding all the data in 1 filed.
Regards,
Yaakov