Exemple #1
0
 private static void Output(HtmlStyleValueExpression expression)
 {
     if (expression != null)
     {
         Console.WriteLine("{0}: {1}", expression.Expression, expression.Value);
     }
 }
Exemple #2
0
        public void SimpleExpressionTest()
        {
            string styleValue = "expression(26 * 7)";

            HtmlStyleValueExpression expression = HtmlStyleParser.ParseValue(styleValue);

            Output(expression);
        }
Exemple #3
0
        public void DoubleParenthesesExpressionTest()
        {
            string styleValue = "expression((26 + 7) * 9)";

            HtmlStyleValueExpression expression = HtmlStyleParser.ParseValue(styleValue);

            Output(expression);
        }
 private static void Output(HtmlStyleValueExpression expression)
 {
     if (expression != null)
         Console.WriteLine("{0}: {1}", expression.Expression, expression.Value);
 }