TOC PREV NEXT INDEX


Generated PER Decode Methods



For each ASN.1 production defined in the ASN.1 source file, a C# decode method may be generated. This method will decode an ASN.1 message into public member variables within the C# object.

As was the case for encode methods, a decode method is only generated if it is required to alter the default method in the base class. The C# model is built on inheritance from a set of common run-time base classes. These run-time classes contain default implementations of encode/decode methods that handle the encoding/decoding of the basic types.

For primitive types, a custom PER decode method is only generated if one or more of the following is true:

The exception to this rule is the ENUMERATED primitive type (or likewise, INTEGER type with a named number list) that will always cause a decode method to be generated.

Constructed types will always cause custom PER decode methods to be generated.



Objective Systems, Inc.

102 Pickering Way, Suite #506
Exton, 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
TOC PREV NEXT INDEX