/** * Gets the formula as a string */ public string getFormula() { StringBuilder sb = new StringBuilder(); root.getString(sb); return(sb.ToString()); }
/** * 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); }