Ejemplo n.º 1
0
        public string EvaluateAsString(IInterpretContext ctx)
        {
            object obj = Evaluate(ctx);

            return(obj != null
                                ? reflector.AsString(obj)
                                : (ImpressionEngine.EmptySubs.Contains("{0}")
                                        ? string.Format(ImpressionEngine.EmptySubs, this.Markup)
                                        : ImpressionEngine.EmptySubs));
        }