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