示例#1
0
        public static IEnumerable <Attribute> GetAnnotations(this PropertyInfo property)
        {
            var path = new PropertyPath(property.DeclaringType).GoDown(property);

            return(path.GetAnnotations());
        }
示例#2
0
 public static PropertyPath Property <TProp>(Expression <Func <T, TProp> > propertySelector)
 {
     return(PropertyPath.FromExpression(propertySelector.Body));
 }
示例#3
0
        public static IEnumerable <Attribute> GetAnnotations(this Type t)
        {
            var path = new PropertyPath(t);

            return(path.GetAnnotations());
        }