Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ScriptableDurationAttribute.cs
1using System;
2using Waher.Content;
3
5{
10 {
17 : base(Definition, Node)
18 {
19 }
20
26 public override Duration ParseValue(string s)
27 {
28 if (Duration.TryParse(s, out Duration d))
29 return d;
30 else
31 throw new ArgumentException("Invalid Duration value.", nameof(s));
32 }
33 }
34}
ScriptableDurationAttribute(string Definition, StateMachineNode Node)
Scriptable string attribute.
override Duration ParseValue(string s)
Parses a string representation of a value.
Abstract base class for State-Machine nodes.
Represents a duration value, as defined by the xsd:duration data type: http://www....
Definition: Duration.cs:13
static bool TryParse(string s, out Duration Result)
Tries to parse a duration value.
Definition: Duration.cs:85