Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ReportInt16Attribute.cs
1using System;
2using System.Xml;
3
5{
10 {
16 public ReportInt16Attribute(XmlElement Xml, string AttributeName)
17 : base(Xml, AttributeName)
18 {
19 }
20
26 public override short ParseValue(string s)
27 {
28 if (short.TryParse(s, out short Value))
29 return Value;
30 else
31 throw new ArgumentException("Invalid short value: " + s, nameof(s));
32 }
33 }
34}
Abstract base class for report attributes.
override short ParseValue(string s)
Parses a string representation of a value.
ReportInt16Attribute(XmlElement Xml, string AttributeName)
Report Int16 attribute.