Exemplo n.º 1
0
 public static T GetSingle <T>(this ICustomAttributeProvider type, bool inherit = false)
     where T : Attribute
 {
     return(type.Get <T>(inherit)
            .SingleOrDefault());
 }
Exemplo n.º 2
0
 public static bool Have <T>(this ICustomAttributeProvider type, bool inherit = false)
     where T : Attribute
 {
     return(type.Get <T>(inherit)
            .Any());
 }