Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Asn1Module.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Threading.Tasks;
5
7{
11 public class Asn1Module : Asn1Node
12 {
13 private readonly Asn1Import[] imports;
14 private readonly string[] exports;
15 private readonly Asn1Node[] items;
16
24 {
25 this.imports = Imports;
26 this.exports = Exports;
27 this.items = Items;
28 }
29
33 public Asn1Import[] Imports => this.imports;
34
38 public string[] Exports => this.exports;
39
43 public Asn1Node[] Items => this.items;
44
52 public override async Task ExportCSharp(StringBuilder Output, CSharpExportState State,
53 int Indent, CSharpExportPass Pass)
54 {
55 foreach (Asn1Node Item in this.items)
56 await Item.ExportCSharp(Output, State, Indent, Pass);
57
58 State.ClosePending(Output);
59 }
60
61
62 }
63}
Represents one import instruction.
Definition: Asn1Import.cs:14
Represents an ASN.1 module.
Definition: Asn1Module.cs:12
Asn1Module(Asn1Import[] Imports, string[] Exports, Asn1Node[] Items)
Represents an ASN.1 module.
Definition: Asn1Module.cs:23
override async Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
Exports to C#
Definition: Asn1Module.cs:52
Asn1Import[] Imports
Optional Import instructions.
Definition: Asn1Module.cs:33
string[] Exports
Optional Export instructions.
Definition: Asn1Module.cs:38
Asn1Node[] Items
Items in module.
Definition: Asn1Module.cs:43
Base class for all ASN.1 nodes.
Definition: Asn1Node.cs:38
virtual Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
Exports to C#
Definition: Asn1Node.cs:46
CSharpExportPass
Defines different C# export passes.
Definition: Asn1Node.cs:12