.NET/Link API Version 1.7 USE FRAMES

IKernelLink.EvaluateToInputForm Method

Sends code for evaluation and returns the result as a string formatted in Mathematica InputForm.

Overload List

Sends the code to evaluate as a string.

string EvaluateToInputForm(string,int);

Sends the code to evaluate as an Expr.

string EvaluateToInputForm(Expr,int);

Remarks

This method sends the evaluation and waits for the result to come back as a string. It discards any packets other than the result (for example, Mathematica messages or Print output).

The string will have newlines in the Windows CR/LF format.

It does not throw a MathLinkException. Instead it returns null if there was an error. You can use the LastError property to see the MathLinkException that was generated.

See Also

IKernelLink Interface | Wolfram.NETLink Namespace | LastError