
Information Object Set
Information Object code will be generated in 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:
In this definition, <ModuleName> would be replaced with the name of the ASN.1 module in which the Information Object Sets are defined.
Each Information Object Set specification causes a C# constant to be generated containing an array of Information Object values. Each object in the array is an instance of the equivalent C# class representing the corresponding ASN.1 information object
As of this writing, a static array is used to hold the objects, but this could be changed to something like a linked list or hash.
<name> <ClassName> ::= { <Information Object1> | <Information Object2> }public static readonly <ClassName> <name> = new <ClassName> {<Information Object1>, <Information Object1> };For example, consider the following Information Object Set declaration for above ATTRIBUTE definition:
SupportedAttributes ATTRIBUTE ::= { name | commonName }public static readonly ATTRIBUTE[] SupportedAttributes = new ATTRIBUTE[] { _TestValues.name, _TestValues.commonName };
Objective Systems, Inc.102 Pickering Way, Suite #506Exton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |