public static RowColumnExpression operator +(RowColumnExpression a, RowColumnExpression b) { if (a.Order != b.Order) { throw new Exception("RowColumnExpression values must have same Order"); } RowColumnExpression retVal = new RowColumnExpression(a.Order, a.Expression + " + " + b.Expression); //default it return(retVal); }
public static int Test_RowColumnExpressions() { RowColumnExpression rc1 = new RowColumnExpression(4, "a11"); RowColumnExpression rc2 = new RowColumnExpression(4, "a11"); RowColumnExpression ret = rc1 * rc2; Console.WriteLine("{0}", ret.Expression); return(0); }