ASN1C C# Runtime Library
7.3
|
Public Member Functions | |
void | Characters (System.String svalue, short typeCode) |
void | EndElement (System.String name, int index) |
void | StartElement (System.String name, int index) |
This interface defines the methods that must be implemented to define a SAX-like event handler. These methods are invoked from within the generated C# decode logic when significant events occur during the parsing of an ASN.1 message.
void Characters | ( | System.String | svalue, |
short | typeCode | ||
) |
The Characters callback method is invoked when content (primitive data) is encountered. A stringified representation of the parsed value is returned.
svalue | Stringified representation of the parsed value. The representation will be in ASN.1 value format. |
typeCode | Identifier specifying the type of the parsed data variable. The enumerated list of values that might appear here is provided in the the Asn1Type class (see the documentation on this class for a full list of the names). |
Implemented in Asn1TraceHandler.
void EndElement | ( | System.String | name, |
int | index | ||
) |
The EndElement callback method is invoked when the end of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is detected.
name | Name of the parsed element. |
index | Index of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others. |
Implemented in Asn1TraceHandler.
void StartElement | ( | System.String | name, |
int | index | ||
) |
The StartElement callback method is invoked when the start of an element within a constructed type (SEQUENCE, SET, SEQUENCE OF, SET OF, or CHOICE) is encountered.
name | Name of the parsed element. |
index | Index of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others. |
Implemented in Asn1TraceHandler.