Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ScriptableTimeSpanAttribute.cs
1using System;
2
4{
9 {
16 : base(Definition, Node)
17 {
18 }
19
25 public override TimeSpan ParseValue(string s)
26 {
27 if (TimeSpan.TryParse(s, out TimeSpan t))
28 return t;
29 else
30 throw new ArgumentException("Invalid TimeSpan value.", nameof(s));
31 }
32 }
33}
ScriptableTimeSpanAttribute(string Definition, StateMachineNode Node)
Scriptable string attribute.
override TimeSpan ParseValue(string s)
Parses a string representation of a value.
Abstract base class for State-Machine nodes.