Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Asn1Null.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Threading.Tasks;
6
8{
12 public class Asn1Null : Asn1Type
13 {
17 public Asn1Null()
18 : base()
19 {
20 }
21
29 public override Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
30 {
31 if (Pass == CSharpExportPass.Explicit)
32 Output.Append("Object");
33
34 return Task.CompletedTask;
35 }
36
43 public override Asn1Node Parse(Asn1Document Document, Asn1Macro Macro)
44 {
45 return null;
46 }
47
48 }
49}
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: Asn1Null.cs:29
override Asn1Node Parse(Asn1Document Document, Asn1Macro Macro)
Parses the portion of the document at the current position, according to the type.
Definition: Asn1Null.cs:43
CSharpExportPass
Defines different C# export passes.
Definition: Asn1Node.cs:12