Sends code for evaluation and returns the result as a string formatted in Mathematica InputForm.
Sends the code to evaluate as a string.
Sends the code to evaluate as an Expr.
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.