Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
KycCondition.cs
1using System;
3
5{
6 public class KycCondition
7 {
8 public string FieldRef { get; set; } = string.Empty;
9 public new string? Equals { get; set; }
10
11 public bool Evaluate(IDictionary<string, string?> Values)
12 {
13 string? FieldValue;
14 return Values.TryGetValue(this.FieldRef, out FieldValue)
15 && (this.Equals is null ? !string.IsNullOrEmpty(FieldValue) : string.Equals(FieldValue, this.Equals, StringComparison.OrdinalIgnoreCase));
16 }
17 }
18}