Arbitrary bit-sized data type in C#
        Posted  
        
            by Yaakov Davis
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Yaakov Davis
        
        
        
        Published on 2010-03-09T07:38:01Z
        Indexed on 
            2010/03/09
            7:51 UTC
        
        
        Read the original article
        Hit count: 477
        
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
© Stack Overflow or respective owner