public Expression(IInfixToPostfix converterObject, string infix) : this(infix) { this.converter = converterObject; }
public Expression() { this.converter = new InfixToPostfix(Infix); }
public Expression(IInfixToPostfix converterObject) { this.converter = converterObject; }
/// <summary> /// Calls instance of converter object : IInfixToPostfix /// Used to pass Infix prop to converter and then update Postfix prop /// </summary> /// <param name="verbosemode">if verbosemode == true, infix to postfix conversion process is printed to console</param> public void ConvertToPostfix(IInfixToPostfix converterObj, bool verbosemode = false) { converterObj.VerboseMode = verbosemode; Postfix = converterObj.Convert(Infix); }