Sends code for evaluation and returns the result as a string formatted in Mathematica OutputForm.
Sends the code to evaluate as a string.
string EvaluateToOutputForm(string,int);
Sends the code to evaluate as an Expr.
string EvaluateToOutputForm(Expr,int);
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.IKernelLink Interface | Wolfram.NETLink Namespace | LastError