TOC PREV NEXT INDEX


OBJECT IDENTIFIER



The ASN.1 OBJECT IDENTIFIER type is converted to a C# class that inherits the Asn1ObjectIdentifier run-time class. This base class encapsulates the following public member variable:

    public int[] mValue;
 

The number of subidentifiers to be encoded or that were decoded is specified in the built-in length component of the array object (i.e., mValue.length).

The following shows the basic mapping from ASN.1 type to C# class definition:

ASN.1 Production:
<name> ::= OBJECT IDENTIFIER


 
Generated C# class:

public class <name> : Asn1ObjectIdentifier {
 
   public <name> () :
 
      base() {
 
   }
 
   public <name> (int[] value_) :
 
      base (value_) {
 
   }
 
}


 



This shows the class generated for a simple OBJECT IDENTIFIER assignment. If a tagged or constrained type is specified, specific encode and decode methods will be generated as well.



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