TOC PREV NEXT INDEX


SEQUENCE Value Specification



A SEQUENCE value specification causes a readonly static instance of the C# class generated for the SEQUENCE to be generated.

ASN.1 production:

	<name> <SequenceType> ::= <value>
 

Generated C# constants:

public static readonly <SequenceType> <name> =
new <SequenceType> ( new <Elem1Type> (<elem1value>),
new <Elem2Type> (<elem2value>),
... );

For example, consider the following declaration:

	SeqType ::=  SEQUENCE {
 
   	   oid		OBJECT IDENTIFIER,
 
   	   id		INTEGER 
 
	}
 

	value SeqType ::= { oid { 0 1 1 }, id 12 }
 

This would result in the following C# constant being generated for value:

	public static readonly SeqType value = new SeqType (
 
	   new Asn1ObjectIdentifier( new int[]{0, 1, 1}),
 
	   new Asn1Integer(12)
 
	);
 



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