Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SingleEncoder.cs
1using System;
2using System.Text;
4
6{
11 {
16 {
17 }
18
25 public void Encode(object Object, int? Indent, StringBuilder Json)
26 {
27 Json.Append(CommonTypes.Encode((float)Object));
28 }
29
35 public Grade Supports(Type ObjectType)
36 {
37 return ObjectType == typeof(float) ? Grade.Excellent : Grade.NotAtAll;
38 }
39 }
40}
Helps with parsing of commong data types.
Definition: CommonTypes.cs:13
static string Encode(bool x)
Encodes a Boolean for use in XML and other formats.
Definition: CommonTypes.cs:594
void Encode(object Object, int? Indent, StringBuilder Json)
Encodes the Object to JSON.
Grade Supports(Type ObjectType)
How well the JSON encoder encodes objects of type ObjectType .
Interface for encoding objects of certain types to JSON.
Definition: IJsonEncoder.cs:11
Grade
Grade enumeration
Definition: Grade.cs:7