Rhino.Context.DecompileScript C# (CSharp) Method

DecompileScript() public method

Decompile the script.
Decompile the script.

The canonical source of the script is returned.

public DecompileScript ( System.Script script, int indent ) : string
script System.Script the script to decompile
indent int the number of spaces to indent the result
return string
		public string DecompileScript(Script script, int indent)
		{
			NativeFunction scriptImpl = (NativeFunction)script;
			return scriptImpl.Decompile(indent, 0);
		}

Usage Example

Example #1
0
			public object Run(Context cx)
			{
				Script script = cx.CompileString(source, "my script", 0, null);
				NUnit.Framework.Assert.AreEqual(source, cx.DecompileScript(script, 4).Trim());
				return null;
			}
All Usage Examples Of Rhino.Context::DecompileScript
Context