Other Methods

Other generated methods include the following:

A private Init() method. This is generated in constructed types to set all element object references to null prior to decoding.

A public Print() method. This is only generated if the –print option is specified. This provides a formatted printout of the contents of the object. The output can be directed to a StreamWriter object.

A public ElemName property (CHOICE only). This property retrieves the name of an element within a CHOICE construct give its assigned identifier value.

The public Set_<element> methods (CHOICE only). These are generated for each element in a CHOICE construct to allow the CHOICE value to be set.