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

            return(path.GetAnnotations());
        }
Esempio n. 2
0
        public static IEnumerable <Attribute> GetAnnotations(this Type t)
        {
            var path = new PropertyPath(t);

            return(path.GetAnnotations());
        }