Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Asn1SequenceOf.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Threading.Tasks;
6
8{
13 {
14 private readonly Asn1Values size;
15 private readonly Asn1Type elementType;
16
24 public Asn1SequenceOf(string Name, bool TypeDef, Asn1Values Size,
26 : base(Name, TypeDef)
27 {
28 this.size = Size;
29 this.elementType = ElementType;
30 }
31
35 public Asn1Values Size => this.size;
36
40 public Asn1Type ElementType => this.elementType;
41
49 public override async Task ExportCSharp(StringBuilder Output, CSharpExportState State,
50 int Indent, CSharpExportPass Pass)
51 {
52 if (Pass == CSharpExportPass.Explicit)
53 {
54 Output.Append("Array<");
55 await this.elementType.ExportCSharp(Output, State, Indent, Pass);
56 Output.Append(">");
57 }
58 }
59
60 }
61}
Abstract base class for complex types.
string Name
Optional field or type name.
Represents a ASN.1 SEQUENCE OF construct.
Asn1SequenceOf(string Name, bool TypeDef, Asn1Values Size, Asn1Type ElementType)
Represents a ASN.1 SEQUENCE OF construct.
override async Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
Exports to C#
Abstract base class for ASN.1 types.
Definition: Asn1Type.cs:13
Abstract base class for sets of values
Definition: Asn1Values.cs:11
CSharpExportPass
Defines different C# export passes.
Definition: Asn1Node.cs:12