Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ScriptableDateTimeAttribute.cs
1using System;
3
5{
10 {
17 : base(Definition, Node)
18 {
19 }
20
26 public override DateTime ParseValue(string s)
27 {
28 if (XML.TryParse(s, out DateTime d))
29 return d;
30 else
31 throw new ArgumentException("Invalid DateTime value.", nameof(s));
32 }
33 }
34}
Helps with common XML-related tasks.
Definition: XML.cs:19
static bool TryParse(string s, out DateTime Value)
Tries to decode a string encoded DateTime.
Definition: XML.cs:744
override DateTime ParseValue(string s)
Parses a string representation of a value.
ScriptableDateTimeAttribute(string Definition, StateMachineNode Node)
Scriptable string attribute.
Abstract base class for State-Machine nodes.