Chapter 18. Generated Metadata Methods
Prev Next

Chapter 18. Generated Metadata Methods

Table of Contents

IsRequired
GetValueRange

In version 6.8, ASN1C adds the ability to generate methods to inspect the elements in a SEQUENCE or SET. Using the -genmetadata option, users can generate the following methods:

  • public static bool IsRequired (String elemName)
     throws Asn1InvalidElemException
  • public static bool GetValueRange (String elemName, Asn1ValueRange range)

These methods provide access to syntactic information present in the schema used during code generation: whether the elements in a SEQUENCE or SET are required or optional, and what, if any, value range may be applied to the elements. The following sections describe these methods in detail.


Prev Next
Generated C# Method Format and Calling Parameters Home IsRequired

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