Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ObjectExNihiloEncoder2.cs
1using System;
2using System.Collections.Generic;
3using System.Reflection;
4using System.Text;
7
9{
14 {
19 {
20 }
21
28 public void Encode(object Object, int? Indent, StringBuilder Json)
29 {
30 JSON.Encode((IEnumerable<KeyValuePair<string, IElement>>)Object, Indent, Json);
31 }
32
38 public Grade Supports(Type ObjectType)
39 {
40 return typeof(IEnumerable<KeyValuePair<string, IElement>>).GetTypeInfo().IsAssignableFrom(ObjectType.GetTypeInfo()) ? Grade.Ok : Grade.NotAtAll;
41 }
42 }
43}
Helps with common JSON-related tasks.
Definition: JSON.cs:14
static string Encode(string s)
Encodes a string for inclusion in JSON.
Definition: JSON.cs:507
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