コード例 #1
0
        /**
         * Gets the formula as a string
         */
        public string getFormula()
        {
            StringBuilder sb = new StringBuilder();

            root.getString(sb);
            return(sb.ToString());
        }
コード例 #2
0
        /**
         * Gets the formula as a string.  Uses the parse tree to do this, and
         * does not simply return whatever string was passed in
         */
        public string getFormula()
        {
            if (parsedFormula == null)
            {
                StringBuilder sb = new StringBuilder();
                root.getString(sb);
                parsedFormula = sb.ToString();
            }

            return(parsedFormula);
        }