Пример #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());
        }