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