Exemple #1
0
 /// <summary>
 /// ASN.1 Macro
 /// </summary>
 /// <param name="Name">Name of macro.</param>
 /// <param name="TypeNotation">Type Notation</param>
 /// <param name="ValueNotation">Value Notation</param>
 /// <param name="SupportingSyntax">Supporting Syntax</param>
 /// <param name="Document">Document defining macro.</param>
 public Asn1Macro(string Name, UserDefinedItem TypeNotation, UserDefinedItem ValueNotation,
                  SupportingSyntax[] SupportingSyntax, Asn1Document Document)
 {
     this.name             = Name;
     this.typeNotation     = TypeNotation;
     this.valueNotation    = ValueNotation;
     this.supportingSyntax = SupportingSyntax;
     this.document         = Document;
 }
Exemple #2
0
        /// <summary>
        /// ASN.1 Macro
        /// </summary>
        /// <param name="Name">Name of macro.</param>
        /// <param name="TypeNotation">Type Notation</param>
        /// <param name="ValueNotation">Value Notation</param>
        /// <param name="SupportingSyntax">Supporting Syntax</param>
        /// <param name="Document">Document defining macro.</param>
        public Asn1Macro(string Name, UserDefinedItem TypeNotation, UserDefinedItem ValueNotation,
                         SupportingSyntax[] SupportingSyntax, Asn1Document Document)
        {
            this.name                  = Name;
            this.typeNotation          = TypeNotation;
            this.valueNotation         = ValueNotation;
            this.supportingSyntaxArray = SupportingSyntax;
            this.document              = Document;

            this.supportingSyntax = new Dictionary <string, SupportingSyntax>();

            foreach (SupportingSyntax Syntax in SupportingSyntax)
            {
                this.supportingSyntax[Syntax.Name] = Syntax;
            }
        }
Exemple #3
0
 /// <summary>
 /// Type notation declaration
 /// </summary>
 /// <param name="Name">Name</param>
 /// <param name="Notation">Notation</param>
 public SupportingSyntax(string Name, UserDefinedItem Notation)
 {
     this.name     = Name;
     this.notation = Notation;
 }