Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
GeoParameterValueRenderer.cs
1using System.Threading.Tasks;
4
6{
11 {
16 : base()
17 {
18 }
19
25 public override Grade Supports(object Value)
26 {
27 return Value is GeoPosition ? Grade.Ok : Grade.NotAtAll;
28 }
29
37 public override Task<string> ToString(object Value, string Language, MarkdownSettings Settings)
38 {
39 if (Value is GeoPosition Position)
40 return Task.FromResult(Position.HumanReadable);
41 else
42 return base.ToString(Value, Language, Settings);
43 }
44 }
45}
override Task< string > ToString(object Value, string Language, MarkdownSettings Settings)
Generates a Markdown string from the parameter value.
Settings used for Markdown generation of human-readable text.
Contains information about a position in a geo-spatial coordinate system.
Definition: GeoPosition.cs:17
Grade
Grade enumeration
Definition: Grade.cs:7