Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ReportInt16Attribute.cs
1
using
System
;
2
using
System.Xml;
3
4
namespace
Waher.Reports.Model.Attributes
5
{
9
public
class
ReportInt16Attribute
:
ReportAttribute
<short>
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
}
Waher.Reports.Model.Attributes.ReportAttribute
Abstract base class for report attributes.
Definition:
ReportAttribute.cs:15
Waher.Reports.Model.Attributes.ReportInt16Attribute
Report Int16 attribute.
Definition:
ReportInt16Attribute.cs:10
Waher.Reports.Model.Attributes.ReportInt16Attribute.ParseValue
override short ParseValue(string s)
Parses a string representation of a value.
Definition:
ReportInt16Attribute.cs:26
Waher.Reports.Model.Attributes.ReportInt16Attribute.ReportInt16Attribute
ReportInt16Attribute(XmlElement Xml, string AttributeName)
Report Int16 attribute.
Definition:
ReportInt16Attribute.cs:16
System
Definition:
Adapters.g.cs:58
Waher.Reports.Model.Attributes
Definition:
ReportAttribute.cs:9
IoTGateway
Reports
Waher.Reports.Files
Model
Attributes
ReportInt16Attribute.cs
Generated by
1.9.5