1using System.Reflection;
22 private readonly
static Assembly scriptContent = typeof(
GraphEncoder).Assembly;
23 private readonly
static Assembly[] prohibitedAssemblies =
new Assembly[]
27 typeof(
WhoIs).Assembly,
53 bool AllowCustomFunctions, out
ScriptNode Prohibited)
60 Assembly Assembly = Node.GetType().Assembly;
62 foreach (Assembly A
in prohibitedAssemblies)
64 if (A.FullName == Assembly.FullName)
66 if (A == scriptContent &&
67 (Node is Waher.Script.Content.Functions.Duration ||
68 Node.GetType().Namespace == typeof(Utf8Encode).Namespace))
86 (Node is
Error && !AllowError))
96 Prohibited = Prohibited2;
Static class with script extensions.
static bool CheckExpressionSafe(this Expression Expression, out ScriptNode Prohibited)
Checks if an expression is safe to execute (if it comes from an external source).
static bool CheckExpressionSafe(this Expression Expression, bool AllowNamedMembers, bool AllowError, bool AllowCustomFunctions, out ScriptNode Prohibited)
Checks if an expression is safe to execute (if it comes from an external source).
Creates a connection to an external MS SQL database.
Class managing a script expression.
bool ForAll(ScriptNodeEventHandler Callback, object State, bool DepthFirst)
Calls the callback method for all script nodes defined for the expression.
Defines a clickable fractal graph in the complex plane.
Creates an object of a specific class. The first argument must evaluate to the type that is to be cre...
Destroys a value. If the function references a variable, the variable is also removed.
Base class for all nodes in a parsed script tree.
Makes a WHOIS query regarding an IP address.
Named member Assignment operator.
Dynamic function call operator
Named method call operator.
Executes a SELECT statement against the object database.
SearchMethod
Method to traverse the expression structure