Пример #1
0
        public object EvaluateObject(RenderingKey key)
        {
            if (key == null)
            {
                return(null);
            }

            return(key.Evaluate(this));
        }
Пример #2
0
        public override object Evaluate(RenderingContext context)
        {
            var obj = body.Evaluate(context);

            if (obj is bool)
            {
                return(!((bool)obj));
            }

            throw new Exception("Expected bool key");
        }