public bool IsValid(string expressionType, string dataMemberPropertyName)
        {
            Type          type       = _retriever.GetTypeFromString(expressionType);
            List <string> properties = type.GetAllPropertyNames();

            return(properties.Contains(dataMemberPropertyName));
        }
Exemple #2
0
        private List <string> GetAccessibleProperties(string expressionType)
        {
            Type type = _retriever.GetTypeFromString(expressionType);

            if (AccessiblePropertiesInType.ContainsKey(type))
            {
                return(AccessiblePropertiesInType[type]);
            }
            else
            {
                List <string> properties = type.GetAccessibleFieldAndPropertyNames();
                AccessiblePropertiesInType.Add(type, properties);
                return(properties);
            }
        }