Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Int32Parameter.cs
1using System.Text;
2
4{
8 public class Int32Parameter : Parameter
9 {
10 private int value;
11
16 : base()
17 {
18 this.value = 0;
19 }
20
27 public Int32Parameter(string Id, string Name, int Value)
28 : base(Id, Name)
29 {
30 this.value = Value;
31 }
32
36 public int Value
37 {
38 get => this.value;
39 set => this.value = value;
40 }
41
45 public override object UntypedValue => this.value;
46
51 public override void Export(StringBuilder Xml)
52 {
53 Xml.Append("<int");
54 base.Export(Xml);
55 Xml.Append(" value='");
56 Xml.Append(this.value.ToString());
57 Xml.Append("'/>");
58 }
59 }
60}
Int32Parameter(string Id, string Name, int Value)
Int32-valued parameter.
override object UntypedValue
Untyped parameter value
override void Export(StringBuilder Xml)
Exports the parameters to XML.
Base class for all node parameters.
Definition: Parameter.cs:10