internal static List <ResourceProperty> GetRefPropertiesUsed(Expression expression) { PropertyReferenceFinder propertyReferenceFinder = new PropertyReferenceFinder(); propertyReferenceFinder.Visit(expression); return(propertyReferenceFinder.Properties); }
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)); }