2using System.Collections.Generic;
12 private readonly Dictionary<string, KeyValuePair<Asn1Document, string>> imported =
13 new Dictionary<string, KeyValuePair<Asn1Document, string>>();
52 return this.BaseNamespace +
"." +
Asn1Node.ToCSharp(Identifier);
62 return this.imported.ContainsKey(Identifier);
73 this.imported[Identifier] =
new KeyValuePair<Asn1Document, string>(Document, Code);
83 return this.imported[Identifier].Value;
93 return this.imported[Identifier].Key;
103 string[] Result =
new string[this.imported.Count];
104 this.imported.Keys.CopyTo(Result, 0);
Represents an ASN.1 document.
void AddCode(string Identifier, string Code, Asn1Document Document)
Adds C# code for a given identifier.
string GetCode(string Identifier)
Gets C# code for a given identifier.
bool ContainsCode(string Identifier)
If C# code is available for a given identifier.
EncodingSchemes Codecs
What encoders and decoders to include in the generation of C# code.
CSharpExportSettings(string BaseNamespace)
What encoders and decoders to include in the generation of C# code.
Asn1Document GetDocument(string Identifier)
Gets C# code for a given identifier.
string BaseNamespace
Base Namespace
string[] Modules
Modules exported.
CSharpExportSettings(string BaseNamespace, EncodingSchemes Codecs)
What encoders and decoders to include in the generation of C# code.
string Namespace(string Identifier)
Namespace for a given identifier.
Base class for all ASN.1 nodes.
EncodingSchemes
Available ASN.1 encoding schemes.