Ejemplo n.º 1
0
        /// <summary>
        /// We just evaluate the expression. Report it to anyone that is interested.
        /// </summary>
        /// <param name="c"></param>
        /// <remarks>Force execution of anythign that is returned as an IEnumerable</remarks>
        public void Evaluate(IScopeContext c)
        {
            var r = Expression.Evaluate(c);

            if (r is IEnumerable <object> )
            {
                r = (r as IEnumerable <object>).ToArray();
            }
            c.ReportExpressionStatementEvaluation(r);
        }