2using System.Collections.Generic;
31 StringBuilder sb =
new StringBuilder();
40 this.Output(
"TypeName", Obj.
TypeName, ref First, sb);
43 this.Output(
"ObjectId", Obj.
ObjectId.ToString(), ref First, sb);
45 foreach (KeyValuePair<string, object> P
in Obj.Properties)
46 this.Output(P.Key, P.Value, ref First, sb);
53 private void Output(
string Name,
object Value, ref
bool First, StringBuilder sb)
66 Replace(
"\\",
"\\\\").
67 Replace(
"\"",
"\\\"").
73 Replace(
"\a",
"\\a"));
Generic object. Contains a sequence of properties.
bool TryGetFieldValue(string PropertyName, out object Value)
Gets the value of a field or property of the object, given its name.
string TypeName
Type name.
string CollectionName
Collection name.
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.
static bool CanBeVariable(string Label)
Checks if a label can be used as a variable directly or not.
Converts values of type GenericObject to expression strings.
Grade Supports(Type Object)
If the interface understands objects such as Object .
string GetString(object Value)
Gets a string representing a value.
Interface for custom string output classes. Converts objects of a given type to an expression string.