Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Asn1Any.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Threading.Tasks;
6
8{
12 public class Asn1Any : Asn1Type
13 {
17 public Asn1Any()
18 : base()
19 {
20 }
21
28 public override Asn1Node Parse(Asn1Document Document, Asn1Macro Macro)
29 {
30 return Document.ParseValue();
31 }
32
40 public override Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
41 {
42 if (Pass == CSharpExportPass.Explicit)
43 Output.Append("Object");
44
45 return Task.CompletedTask;
46 }
47 }
48}
Represents an ASN.1 document.
Definition: Asn1Document.cs:21
Base class for all ASN.1 nodes.
Definition: Asn1Node.cs:38
Abstract base class for ASN.1 types.
Definition: Asn1Type.cs:13
override Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
Exports to C#
Definition: Asn1Any.cs:40
override Asn1Node Parse(Asn1Document Document, Asn1Macro Macro)
Parses the portion of the document at the current position, according to the type.
Definition: Asn1Any.cs:28
CSharpExportPass
Defines different C# export passes.
Definition: Asn1Node.cs:12