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

            if (hasProperty)
            {
                return(hasProperty);
            }

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