Example #1
0
        protected bool HasProperty(Type type, string propertyName)
        {
            var hasProperty = PropertyAssessorCache.HasAssessor(type, propertyName);

            if (hasProperty)
            {
                return(hasProperty);
            }

            return(type.GetProperty(propertyName) != null);
        }
Example #2
0
 public static PropertyAssessor GetProperty(PropertyInfo propertyInfo)
 {
     return(PropertyAssessorCache.GetOrAdd(propertyInfo, CreatePropertyAssessor));
 }
Example #3
0
 public static PropertyAssessor GetProperty(Type type, string propertyName)
 {
     return(PropertyAssessorCache.GetOrAdd(type, propertyName, CreatePropertyAssessor));
 }