ASN1C C# Runtime Library  7.8
Public Member Functions | List of all members
Asn1NamedEventHandler Interface Reference
Inheritance diagram for Asn1NamedEventHandler:
Asn1ElementTracker Asn1TraceHandler

Public Member Functions

void Characters (System.String svalue, short typeCode)
 
void EndElement (System.String name, int index)
 
void StartElement (System.String name, int index)
 

Detailed Description

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.

Member Function Documentation

◆ Characters()

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.

Parameters
svalueStringified representation of the parsed value. The representation will be in ASN.1 value format.
typeCodeIdentifier 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).
See also
<seealso cref=Asn1Type The type codes are member of Asn1Type class

Implemented in Asn1TraceHandler.

◆ EndElement()

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.

Parameters
nameName of the parsed element.
indexIndex of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others.

Implemented in Asn1TraceHandler.

◆ StartElement()

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.

Parameters
nameName of the parsed element.
indexIndex of element in array. Only used for SEQUENCE OF or SET OF elements. Set to -1 for all others.

Implemented in Asn1TraceHandler.