Esempio n. 1
0
        internal static List <ResourceProperty> GetRefPropertiesUsed(Expression expression)
        {
            PropertyReferenceFinder propertyReferenceFinder = new PropertyReferenceFinder();

            propertyReferenceFinder.Visit(expression);
            return(propertyReferenceFinder.Properties);
        }
Esempio n. 2
0
        protected override Expression VisitConstant(ConstantExpression expression)
        {
            ResourceProperty value = expression.Value as ResourceProperty;

            if (value != null && PropertyReferenceFinder.IsReference(value))
            {
                this.Properties.Add(value);
            }
            return(base.VisitConstant(expression));
        }