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