public static IEnumerable <Attribute> GetAnnotations(this PropertyInfo property) { var path = new PropertyPath(property.DeclaringType).GoDown(property); return(path.GetAnnotations()); }
public static IEnumerable <Attribute> GetAnnotations(this Type t) { var path = new PropertyPath(t); return(path.GetAnnotations()); }