Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CSharpExportState.cs
1using System;
3using System.Text;
4
5namespace Waher.Content.Asn1
6{
10 public class CSharpExportState
11 {
16
17 internal int ExportingValuesIndent = 0;
18 internal bool ExportingValues = false;
19 internal string CurrentNamespace = null;
20
26 {
27 this.Settings = Settings;
28 }
29
34 public void ClosePending(StringBuilder Output)
35 {
36 this.ClosePendingValues(Output);
37 }
38
43 public void ClosePendingValues(StringBuilder Output)
44 {
45 if (this.ExportingValues)
46 {
47 this.ExportingValues = false;
48
49 JSON.Indent(Output, this.ExportingValuesIndent - 1);
50 Output.AppendLine("}");
51 Output.AppendLine();
52 }
53 }
54 }
55}
void ClosePendingValues(StringBuilder Output)
Close pending value actions
CSharpExportSettings Settings
C# export settings.
void ClosePending(StringBuilder Output)
Close pending actions
CSharpExportState(CSharpExportSettings Settings)
C# export state
Helps with common JSON-related tasks.
Definition: JSON.cs:16
static void Indent(StringBuilder Output, int NrTabs)
Appends an indentation to a string builder using tab characters.
Definition: JSON.cs:762