4 using System.Reflection;
13 public static TAttribute GetCustomAttribute<TAttribute> (this ICustomAttributeProvider self)
15 var attributes = self.GetCustomAttributes<TAttribute> ();
16 // if (attributes == null || attributes.Length == 0)
19 return attributes [0];
22 public static TAttribute [] GetCustomAttributes<TAttribute> (this ICustomAttributeProvider self)
27 public static void Main ()