Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Asn1NamedValue.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Threading.Tasks;
5
7{
12 {
13 private readonly Asn1Value value;
14
22 : base(Identifier, Document)
23 {
24 this.value = Value;
25 }
26
30 public Asn1Value Value => this.value;
31
39 public override async Task ExportCSharp(StringBuilder Output, CSharpExportState State,
40 int Indent, CSharpExportPass Pass)
41 {
42 if (Pass == CSharpExportPass.Explicit)
43 {
44 await this.value.ExportCSharp(Output, State, Indent, Pass);
45
46 Output.Append(" /* ");
47 await base.ExportCSharp(Output, State, Indent, CSharpExportPass.Explicit);
48 Output.Append(" */");
49 }
50 }
51 }
52}
Represents an ASN.1 document.
Definition: Asn1Document.cs:21
Abstract base class for values.
Definition: Asn1Value.cs:11
override async Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
Exports to C#
Asn1NamedValue(string Identifier, Asn1Value Value, Asn1Document Document)
Represents a named value.
CSharpExportPass
Defines different C# export passes.
Definition: Asn1Node.cs:12