Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BooleanParameterInfo.cs
2using System;
3using System.Windows.Controls;
4using Waher.Content;
6
8{
13 {
23 : base(Contract, Parameter, Control, DesignModel, Parameters)
24 {
25 }
26
28 public override void SetValue(string Value)
29 {
30 this.Value = string.IsNullOrEmpty(Value) ? (bool?)null :
31 CommonTypes.TryParse(Value, out bool b) ? b : throw new ArgumentException("Invalid boolean value.", nameof(Value));
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
Contains the definition of a contract
Definition: Contract.cs:22
Abstract base class for contractual parameters
Definition: Parameter.cs:17