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