public bool IsValid(string expressionType, string dataMemberPropertyName) { Type type = _retriever.GetTypeFromString(expressionType); List <string> properties = type.GetAllPropertyNames(); return(properties.Contains(dataMemberPropertyName)); }
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); } }