Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Asn1DateTime.cs
1
using
System;
2
using
System.Collections.Generic;
3
using
System.Text;
4
using
System.Threading.Tasks;
5
6
namespace
Waher.Content.Asn1.Model.Types
7
{
11
public
class
Asn1DateTime
:
Asn1Type
12
{
16
public
Asn1DateTime
()
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(
"DateTime"
);
33
if
(this.
Optional
.HasValue &&
this
.Optional.Value)
34
Output.Append(
'?'
);
35
}
36
37
return
Task.CompletedTask;
38
}
39
}
40
}
Waher.Content.Asn1.CSharpExportState
C# export state
Definition:
CSharpExportState.cs:11
Waher.Content.Asn1.Model.Asn1Type
Abstract base class for ASN.1 types.
Definition:
Asn1Type.cs:13
Waher.Content.Asn1.Model.Asn1Type.Optional
bool? Optional
If the type is optional
Definition:
Asn1Type.cs:52
Waher.Content.Asn1.Model.Types.Asn1DateTime
DATE-TIME
Definition:
Asn1DateTime.cs:12
Waher.Content.Asn1.Model.Types.Asn1DateTime.Asn1DateTime
Asn1DateTime()
DATE-TIME
Definition:
Asn1DateTime.cs:16
Waher.Content.Asn1.Model.Types.Asn1DateTime.ExportCSharp
override Task ExportCSharp(StringBuilder Output, CSharpExportState State, int Indent, CSharpExportPass Pass)
Exports to C#
Definition:
Asn1DateTime.cs:28
Waher.Content.Asn1.Model.Types
Definition:
Asn1Any.cs:8
Waher.Content.Asn1.Model.CSharpExportPass
CSharpExportPass
Defines different C# export passes.
Definition:
Asn1Node.cs:12
IoTGateway
Content
Waher.Content.Asn1
Model
Types
Asn1DateTime.cs
Generated by
1.9.5