public static Attribute[] GetDeclaredAttributes(this AttributedModelProvider convention, Type reflectedType, MemberInfo member)
 {
     return(convention.GetCustomAttributes(reflectedType, member).ToArray());
 }
 public static TAttribute[] GetDeclaredAttributes <TAttribute>(this AttributedModelProvider convention, Type reflectedType, ParameterInfo parameter) where TAttribute : Attribute
 {
     return(convention.GetCustomAttributes(reflectedType, parameter).OfType <TAttribute>().ToArray());
 }
 public static TAttribute GetDeclaredAttribute <TAttribute>(this AttributedModelProvider convention, Type reflectedType, MemberInfo member) where TAttribute : Attribute
 {
     return(convention.GetCustomAttributes(reflectedType, member).OfType <TAttribute>().SingleOrDefault());
 }