Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PrintSerialize.cs
2using Waher.Script;
4
6{
11 {
21 {
22 }
23
27 public override string FunctionName => nameof(PrintSerialize);
28
32 public override string[] Aliases => new string[0];
33
40 {
41 ISerializer Serializer = base.GetSerializer(Variables);
42
43 if (!(Variables.ConsoleOut is null))
44 Serializer = new DebugSerializer(Serializer, Variables.ConsoleOut);
45
46 return Serializer;
47 }
48
49 }
50}
Class managing a script expression.
Definition: Expression.cs:39
ScriptNode Argument
Function argument.
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
Collection of variables.
Definition: Variables.cs:25
TextWriter ConsoleOut
Console out interface. Can be used by functions and script to output data to the console.
Definition: Variables.cs:219
Serializes an object to a binary string of octets, using existing serializers, and prints data elemen...
PrintSerialize(ScriptNode Argument, int Start, int Length, Expression Expression)
Serializes an object to a binary string of octets, using existing serializers, and prints data elemen...
override ISerializer GetSerializer(Variables Variables)
Creates a serializer for the operation.
override string FunctionName
Name of the function
override string[] Aliases
Optional aliases. If there are no aliases for the function, null is returned.
Serializes an object to a binary string of octets, using existing serializers.
Definition: Serialize.cs:19