internal static List <ResourceProperty> GetRefPropertiesUsed(Expression expression)
        {
            PropertyReferenceFinder propertyReferenceFinder = new PropertyReferenceFinder();

            propertyReferenceFinder.Visit(expression);
            return(propertyReferenceFinder.Properties);
        }