Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
UserDefinedSpecifiedPart.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4
6{
11 {
12 private readonly string name;
13 private readonly Asn1Type type;
14
22 : base(Identifier)
23 {
24 this.name = Name;
25 this.type = Type;
26 }
27
31 public string Name => this.name;
32
36 public Asn1Type Type => this.type;
37
45 public override Asn1Node Parse(Asn1Document Document, Asn1Macro Macro)
46 {
47 switch (this.Identifier.ToUpper())
48 {
49 case "TYPE": return Document.ParseType(this.Identifier, false);
50 case "VALUE": return Document.ParseValue();
51 default: return this.type.Parse(Document, Macro);
52 }
53 }
54 }
55}
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 Asn1Node Parse(Asn1Document Document, Asn1Macro Macro)
Parses the portion of the document at the current position, according to the instructions available i...
UserDefinedSpecifiedPart(string Identifier, string Name, Asn1Type Type)
Typed user-defined part.