// Checks if GetValue may be called on the given PropertyDescriptor. private static bool IsReadablePropertyDescriptor(PropertyDescriptor property) { return(!(property.ComponentType is System.Reflection.MemberInfo) && !TreeComparer.IsGenericTypeMember(property.ComponentType, property.Name)); }