Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ObservableDecimalField.cs
1using System.Globalization;
3
5{
10 {
11 public override string? StringValue
12 {
13 get => this.DecimalValue?.ToString(CultureInfo.InvariantCulture);
14 set
15 {
16 if (string.IsNullOrWhiteSpace(value))
17 {
18 this.DecimalValue = null;
19 }
20 else if (decimal.TryParse(value, NumberStyles.Number, CultureInfo.InvariantCulture, out decimal dv))
21 {
22 this.DecimalValue = dv;
23 }
24 }
25 }
26
27 public decimal? DecimalValue
28 {
29 get => this.RawValue as decimal?;
30 set => this.RawValue = value;
31 }
32 }
33}
The base KYC field model. Use as-is for generic fields, or subclass for custom logic.