Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ByteArrayEncoder.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('"');
28 Json.Append(Convert.ToBase64String((byte[])Object));
29 Json.Append('"');
30 }
31
37 public Grade Supports(Type ObjectType)
38 {
39 return ObjectType == typeof(byte[]) ? Grade.Ok : Grade.NotAtAll;
40 }
41 }
42}
Grade Supports(Type ObjectType)
How well the JSON encoder encodes objects of type ObjectType .
void Encode(object Object, int? Indent, StringBuilder Json)
Encodes the Object to JSON.
Interface for encoding objects of certain types to JSON.
Definition: IJsonEncoder.cs:11
Grade
Grade enumeration
Definition: Grade.cs:7