Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BaseMetadata.cs
2
4{
9 public class BaseMetadata
10 {
15 public string? Name { get; internal set; }
16
25 public string? Title { get; internal set; }
26
33 public static bool TryParse(Dictionary<string, object> Generic,
34 out BaseMetadata Typed)
35 {
36 BaseMetadata Result = new BaseMetadata();
37
38 if (Generic.TryGetValue("name", out object? Obj))
39 Result.Name = Obj as string;
40
41 if (Generic.TryGetValue("title", out Obj))
42 Result.Title = Obj as string;
43
44 Typed = Result;
45 return true;
46 }
47 }
48}
Base interface for metadata with name (identifier) and title (display name) properties.
Definition: BaseMetadata.cs:10
string? Title
Intended for UI and end-user contexts — optimized to be human-readable and easily understood,...
Definition: BaseMetadata.cs:25
string? Name
Intended for programmatic or logical use, but used as a display name in past specs or fallback (if ti...
Definition: BaseMetadata.cs:15
static bool TryParse(Dictionary< string, object > Generic, out BaseMetadata Typed)
Tries to parse a generic structure into a typed structure.
Definition: BaseMetadata.cs:33