Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DataObject.cs
1using System.Diagnostics.CodeAnalysis;
2
4{
9 public abstract class DataObject(byte[] Value) : IDataObject
10 {
14 public abstract ushort Tag { get; }
15
19 public byte[] Value { get; } = Value;
20
28 public abstract bool TryParse(byte[] Value, TravelDocumentsClient Client,
29 [NotNullWhen(true)] out IDataObject? Parsed);
30
36 protected static string TrimLeadingZeroes(string s)
37 {
38 s = s.TrimStart('0');
39 if (string.IsNullOrEmpty(s))
40 s = "0";
41
42 return s;
43 }
44 }
45}