public static CustomAttributeData GetCustomAttribute(this CodeClass cc, Type attrType) { return(cc.GetCustomAttributes().FirstOrDefault(x => x.AttributeType == attrType)); }
public static CustomAttributeData GetCustomAttribute(this CodeClass cc, Type attrType) { return(cc.GetCustomAttributes().FirstOrDefault(x => x.AttributeType == attrType)); }