/// <summary> /// Create an operand by parsing a string. Like CreateEquation but does not wrap in an Equation object. /// </summary> /// <param name="text"></param> /// <returns></returns> public static Equation CreateEquationOperand(string text) { IEquationParser parser = new EquationParser.Implementation.EquationParserEngine(); IOperand operand = parser.Parse(text); Equation equation = new Equation(operand); return(equation); }
public static Equation <T> CreateEquation <T>(string text) where T : IConvertible { IEquationParser parser = new EquationParser.Implementation.EquationParserEngine(); IOperand operand = parser.Parse <T>(text); Equation <T> equation = new Equation <T>(operand); return(equation); }