2using System.Reflection;
13 private static readonly TypeInfo variablesTypeInfo = typeof(
Variables).GetTypeInfo();
14 private const string recursionMarker =
" IsExporting ";
21 public Grade Supports(Type Object) => variablesTypeInfo.IsAssignableFrom(Object.GetTypeInfo()) ? Grade.Ok :
Grade.NotAtAll;
33 return Value.GetType().FullName;
37 StringBuilder sb =
new StringBuilder();
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 Variables 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 .
Contains information about a variable.
object ValueObject
Object Value of variable.
string Name
Name of variable.
virtual bool ContainsVariable(string Name)
If the collection contains a variable with a given name.
virtual bool Remove(string VariableName)
Removes a varaiable from the collection.
Interface for custom string output classes. Converts objects of a given type to an expression string.