コード例 #1
0
 public static CustomAttributeData GetCustomAttribute(this CodeClass cc, Type attrType)
 {
     return(cc.GetCustomAttributes().FirstOrDefault(x => x.AttributeType == attrType));
 }