Binary String Value Specification

This value specification causes two C# constants to be generated: a ‘numbits’ constant specifying the number of bits in the string and a ‘data’ constant that hold the actual bit values.

        
          ASN.1 production:
        
      
   <name> BIT STRING ::= ‘bbbbbbb’B

Generated C# constants:

   public static readonly int <name>_numbits = <numbits>;
   public static readonly byte[] <name>_data = { 0xhh, 0xhh, ... };

In the ASN.1 production definition, the lowercase ‘b’s above represent binary digits (1’s or 0’s). The generated code contains a numbits constant set to the number of bits (binary digits) in the string. The data constant specifies the binary data using hexadecimal byte values.