Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Asn1TimeOfDay.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Threading.Tasks;
5
7{
11 public class Asn1TimeOfDay : Asn1Type
12 {
17 : base()
18 {
19 }
20
28 public override Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
29 {
30 if (Pass == CSharpExportPass.Explicit)
31 {
32 Output.Append("TimeSpan");
33 if (this.Optional.HasValue && this.Optional.Value)
34 Output.Append('?');
35 }
36
37 return Task.CompletedTask;
38 }
39 }
40}
Abstract base class for ASN.1 types.
Definition: Asn1Type.cs:13
bool? Optional
If the type is optional
Definition: Asn1Type.cs:52
override Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
Exports to C#
CSharpExportPass
Defines different C# export passes.
Definition: Asn1Node.cs:12