Exemplo n.º 1
0
 public static Attribute AttrOrNull(this ICustomAttributeProvider cap, Type t)
 {
     if (cap == null)
     {
         return(null);
     }
     return(cap.AttrOrNull(t, true));
 }
Exemplo n.º 2
0
 public static T AttrOrNull <T>(this ICustomAttributeProvider cap, bool inherit)
     where T : Attribute
 {
     if (cap == null)
     {
         return(null);
     }
     return((T)cap.AttrOrNull(typeof(T), inherit));
 }
Exemplo n.º 3
0
 public static T AttrOrNull <T>(this ICustomAttributeProvider cap)
     where T : Attribute
 {
     return(cap.AttrOrNull <T>(true));
 }