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