BSky.Statistics.R.RService.SyntaxEditorEvaluateToObject_old C# (CSharp) Method

SyntaxEditorEvaluateToObject_old() public method

Syntax Editor will use this
public SyntaxEditorEvaluateToObject_old ( string commandString, bool hasReturn, bool hasUAReturn ) : object
commandString string
hasReturn bool
hasUAReturn bool
return object
        public object SyntaxEditorEvaluateToObject_old(string commandString, bool hasReturn, bool hasUAReturn)// read.spss("", "" )
        {
            object returnValue = null;
            dynamic dy = null;
            try
            {
                //21Jun2013 Following if-else ladder /// earlier above commented one was in use
                if (hasReturn)
                {
                    dy = this._RServer.Evaluate(commandString).AsList();
                    if (dy != null)
                        returnValue = dy;
                }
                else if (hasUAReturn)
                {
                    returnValue = this.EvaluateToUAReturn(commandString);
                }
                else//no return
                {
                    string serr = "R.Net Error not imple";// this._RServer.GetErrorText();
                    if (serr != null && serr.Length > 0)
                    { }
                    this._RServer.Evaluate(commandString);
                }

            }
            catch (Exception e)
            {
                if (e != null)
                {

                }
                if (commandString.Contains("readLines("))
                {
                    returnValue = "EOF";// to show the end of file.
                }
                else if (false)
                {
                    returnValue = "Error: " + "No Err impl, R.net";// this._RServer.GetErrorText();
                }
            }

            return returnValue;
        }