Asn1Choice Class Reference

Inheritance diagram for Asn1Choice:
Asn1Type Asn1TypeIF

List of all members.

Public Member Functions

 Asn1Choice ()
override bool Equals (System.Object value)
virtual Asn1Type GetElement ()
override int GetHashCode ()
virtual void SetElement (int choiceID, Asn1Type element)

Protected Attributes

internal int choiceID
internal Asn1Type element

Properties

virtual int ChoiceID [get]
abstract System.String ElemName [get]

Detailed Description

This class represents the ASN.1 CHOICE built-in type.


Constructor & Destructor Documentation

Asn1Choice (  ) 

The default constructor initializes the choiceID and value.


Member Function Documentation

override bool Equals ( System.Object  value  ) 

This method compares this type element with the passed type element.

Parameters:
value The Object to compare with the current Object. Object should be instance of Asn1Choice.
Returns:
true if the specified Object is equal to the current Object; otherwise, false.
virtual Asn1Type GetElement (  )  [virtual]

This method returns the element object.

Returns:
element data member.
override int GetHashCode (  ) 

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Returns:
A hash code for the current Object.
virtual void SetElement ( int  choiceID,
Asn1Type  element 
) [virtual]

This protected method sets the choice ID and value to the given values. Refer the Set_<element>() methods in compiler generated inherited classes.

Parameters:
choiceID The identifier for element value. The identifier value can be defined by compiler-generated derived class.
element The element value. The possible value types can be defined by compiler-generated derived class.

Member Data Documentation

internal int choiceID [protected]

This member variable is where the selected choice option identifier is stored. This selects the choice option to be used. It is populated with one of the generated choice ID constants in a compiler-generated derived class.

internal Asn1Type element [protected]

This member variable is where the selected choice option value is stored. It can be accessed via the get and set methods in this class and in compiler-generated derived classes.


Property Documentation

virtual int ChoiceID [get]

Gets the choice identifier.

Value: choice option identifier

abstract System.String ElemName [get]

Gets the name of the selected element. A concrete version is generated by the compiler-generated derived class.

Value: choice option name