protected bool HasProperty(Type type, string propertyName) { var hasProperty = PropertyAssessorCache.HasAssessor(type, propertyName); if (hasProperty) { return(hasProperty); } return(type.GetProperty(propertyName) != null); }
public static PropertyAssessor GetProperty(PropertyInfo propertyInfo) { return(PropertyAssessorCache.GetOrAdd(propertyInfo, CreatePropertyAssessor)); }
public static PropertyAssessor GetProperty(Type type, string propertyName) { return(PropertyAssessorCache.GetOrAdd(type, propertyName, CreatePropertyAssessor)); }