Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ReportUInt16Attribute.cs
1
using
System
;
2
using
System.Xml;
3
4
namespace
Waher.Reports.Model.Attributes
5
{
9
public
class
ReportUInt16Attribute
:
ReportAttribute
<ushort>
10
{
16
public
ReportUInt16Attribute
(XmlElement Xml,
string
AttributeName)
17
: base(Xml, AttributeName)
18
{
19
}
20
26
public
override
ushort
ParseValue
(
string
s)
27
{
28
if
(ushort.TryParse(s, out ushort Value))
29
return
Value;
30
else
31
throw
new
ArgumentException(
"Invalid ushort 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.ReportUInt16Attribute
Report UInt16 attribute.
Definition:
ReportUInt16Attribute.cs:10
Waher.Reports.Model.Attributes.ReportUInt16Attribute.ReportUInt16Attribute
ReportUInt16Attribute(XmlElement Xml, string AttributeName)
Report UInt16 attribute.
Definition:
ReportUInt16Attribute.cs:16
Waher.Reports.Model.Attributes.ReportUInt16Attribute.ParseValue
override ushort ParseValue(string s)
Parses a string representation of a value.
Definition:
ReportUInt16Attribute.cs:26
System
Definition:
Adapters.g.cs:58
Waher.Reports.Model.Attributes
Definition:
ReportAttribute.cs:9
IoTGateway
Reports
Waher.Reports.Files
Model
Attributes
ReportUInt16Attribute.cs
Generated by
1.9.5