2using System.Collections.Generic;
19 public Grade Supports(Type Object) => Object == typeof(Dictionary<string, IElement>) ? Grade.Ok :
Grade.NotAtAll;
28 Dictionary<string, IElement> ObjExNihilo = (Dictionary<string, IElement>)Value;
30 StringBuilder sb =
new StringBuilder();
35 foreach (KeyValuePair<string, IElement> P
in ObjExNihilo)
48 Replace(
"\\",
"\\\\").
49 Replace(
"\"",
"\\\"").
55 Replace(
"\a",
"\\a"));
75 bool HasLetters =
false;
77 foreach (
char ch
in Label)
79 if (
char.IsLetter(ch))
81 else if (
char.IsDigit(ch))
Class managing a script expression.
static string ToString(double Value)
Converts a value to a string, that can be parsed as part of an expression.
Converts values of type Dictionary{string, IElement} to expression strings.
string GetString(object Value)
Gets a string representing a value.
Grade Supports(Type Object)
If the interface understands objects such as Object .
static bool CanBeVariable(string Label)
Checks if a label can be used as a variable directly or not.
Interface for custom string output classes. Converts objects of a given type to an expression string.