Value Specifications
Prev Chapter 5. ASN.1 Type to C# Class Mappings Next

Value Specifications

The ASN1C compiler can parse any type of ASN.1 value specification, however, the basic version will only generate code for the following types of value specifications:

  • BOOLEAN

  • INTEGER

  • ENUMERATED

  • Binary String

  • Hexadecimal String

  • Character String

  • OBJECT IDENTIFER

The Pro version of the compiler will generate code for the following remaining types of value specifications:

  • Enumerated

  • Real

  • Sequence

  • Set

  • Sequence Of

  • Set Of

  • Choice

If any of the above types of value specifications are detected in an ASN.1 module, the compiler will generate a C# source file with a special class to hold the values. The name of the source file and class is of the following format:

 _<ModuleName>Values

In this definition, <ModuleName> would be replaced with the name of the ASN.1 module in which the values are defined.

The following sections provide details on the C# constants generated for the various types of ASN.1 value specifications.


Prev Up Next
Parameterized Types Home INTEGER Value Specification

AltStyle によって変換されたページ (->オリジナル) /