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

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

            return(path.GetAnnotations());
        }