Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ContractParameterNode.cs
1using System;
2using System.Threading.Tasks;
3using System.Xml;
5
7{
11 public abstract class ContractParameterNode<T> : StateMachineNode
12 where T : Parameter, new()
13 {
18 : base()
19 {
20 }
21
25 public T Parameter { get; set; }
26
31 public override async Task Parse(XmlElement Xml)
32 {
33 this.ChildNodes = new IStateMachineNode[0];
34
35 this.Parameter = new T();
36 if (!await this.Parameter.Import(Xml))
37 throw new Exception("Unable to import contract parameter.");
38 }
39 }
40}
Abstract base class for state machine nodes representing a contract parameter of type T .
override async Task Parse(XmlElement Xml)
Parses the State-machine node.
ContractParameterNode()
Abstract base class for state machine nodes representing a contract parameter.
Abstract base class for State-Machine nodes.