Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
CaseInsensitiveStringToonEncoder.cs
1using System;
6
8{
13 {
18 {
19 }
20
27 public override void Encode(object Object, int? Indent, ToonOutput Toon)
28 {
30
31 Toon.AppendEncoded(s.Value, !Toon.Empty);
32 }
33
39 public override Grade Supports(Type ObjectType)
40 {
41 return ObjectType == typeof(CaseInsensitiveString) ? Grade.Excellent : Grade.NotAtAll;
42 }
43 }
44}
Abstract base class for simple TOON encoders.
TOON Output builder
Definition: ToonOutput.cs:13
void AppendEncoded(string s, bool InObject)
Encodes a string, if necessary, and appends it to the output.
Definition: ToonOutput.cs:225
bool Empty
If no output has been appended.
Definition: ToonOutput.cs:96
override Grade Supports(Type ObjectType)
How well the TOON encoder encodes objects of type ObjectType .
override void Encode(object Object, int? Indent, ToonOutput Toon)
Encodes the Object to TOON.
Represents a case-insensitive string.
string Value
String-representation of the case-insensitive string. (Representation is case sensitive....
Grade
Grade enumeration
Definition: Grade.cs:7